Configure code checking and formatting tools

Checking
- mypy
- flake8 (which uses pyflakes and pycodestyle)

Formatting
- autopep8
- isort
This commit is contained in:
Joscha
2021-05-16 14:31:43 +02:00
parent 8b76ebb3ef
commit 3efec53f51
5 changed files with 37 additions and 9 deletions

4
scripts/check Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
mypy PFERD
flake8 PFERD

4
scripts/format Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
autopep8 --recursive --in-place PFERD
isort PFERD

5
scripts/setup Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
pip install --upgrade pip setuptools
pip install --editable .
pip install --upgrade mypy flake8 autopep8 isort