-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added docs linting utils - included contribution section in docs
- Loading branch information
Showing
4 changed files
with
97 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Contribution | ||
============ | ||
|
||
|
||
If you want to contribute to this project, please consider the following practices | ||
according to your contribution target. | ||
|
||
|
||
Core | ||
---- | ||
The ``core/`` directory contains all functionalities for training and running the | ||
semantic segmentation model. Core behaves like a python module. | ||
For contributing to this section, first setup your development environment as follows: | ||
|
||
.. code-block:: bash | ||
cd core/ | ||
python -m venv .env | ||
source .env/bin/activate | ||
pip install -r requirements.txt | ||
When refactoring or adding new features, run tests locally with: | ||
|
||
.. code-block:: bash | ||
pytest . | ||
Also, use pylint and mypy for linting code: | ||
|
||
.. code-block:: bash | ||
pylint src/ | ||
mypy src/ | ||
Pylint should score your code 10/10 and mypy should find no issues. | ||
|
||
Docs | ||
---- | ||
The ``docs/`` directory contains all source files for generating these documentation | ||
pages. | ||
|
||
|
||
Development environment | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
Please setup your development environment with venv for python 3.11 as follows | ||
|
||
|
||
.. code-block:: bash | ||
cd docs/ | ||
python -m venv .env | ||
source .env/bin/activate | ||
pip install -r requirements.txt | ||
Once your venv is ready, you can lint your pages after adding new content as follows: | ||
|
||
.. code-block:: bash | ||
rstcheck -r source/ | ||
If your docs sources are right, you should find an output like the following: | ||
``Success! No issues detected.`` | ||
|
||
|
||
Also, you can locally build doc pages with: | ||
|
||
.. code-block:: bash | ||
make html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters