Added pipenv files to offer a consistent python environment, including quality. #20
17
README.md
17
README.md
|
@ -110,6 +110,23 @@ To do so, assuming you are using linux, after installing docker, you can run fro
|
||||||
|
|
||||||
You can now open `eslint_report.html` to see the result.
|
You can now open `eslint_report.html` to see the result.
|
||||||
|
|
||||||
|
## Setting up quality checking for Python
|
||||||
|
|
||||||
|
Regarding Python, quality checking is done using [prospector](https://prospector.landscape.io/en/master/) using [mypy](https://mypy.readthedocs.io/en/stable/) as an additional checker.
|
||||||
|
Auto-formating is done using [Black](https://pypi.org/project/black/)
|
||||||
|
|
||||||
|
Dependencies are managed not using `pip` but [`pipenv`](https://pipenv.pypa.io/en/latest/).
|
||||||
|
|
||||||
|
To setup prospector, you need to run:
|
||||||
|
|
||||||
|
+ Only once, in melpomene's root folder:
|
||||||
|
+ Install pipenv: `pip install pipenv`
|
||||||
|
+ Install melpomene's root folder: `pipenv install --dev`
|
||||||
|
+ Every time to run the quality checking:
|
||||||
|
+ `pipenv shell`
|
||||||
|
+ `prospector -s veryhigh -w mypy --max-line-length 88 .`
|
||||||
|
+ `black .`
|
||||||
|
|
||||||
# Credits
|
# Credits
|
||||||
|
|
||||||
Most examples and the documentation of Melpomene uses illustrations from David "Deevad" Revoy's "Pepper & Carrot" webcomic, which is published under CC-BY 4.0. Full licence [here](https://www.peppercarrot.com/en/license/index.html).
|
Most examples and the documentation of Melpomene uses illustrations from David "Deevad" Revoy's "Pepper & Carrot" webcomic, which is published under CC-BY 4.0. Full licence [here](https://www.peppercarrot.com/en/license/index.html).
|
||||||
|
|
Loading…
Reference in New Issue