1
0
Fork 0

Added testing and linting instructions, plus a missing test dependency

master
Meliurwen 3 years ago
parent 7e1d8c989c
commit 258f47f6a3
  1. 32
      README.md
  2. 1
      test-requirements.txt

@ -49,3 +49,35 @@ Download the latest release in .tar.gz or .whl format and simply use pip install
```sh ```sh
pip install PyCTBN-2.2.tar.gz pip install PyCTBN-2.2.tar.gz
``` ```
## Testing & Linting
Install these dependencies for **tesing**:
```sh
pip3 install -r test-requirements.txt
```
Install these dependencies for **linting**:
```sh
pip3 install -r lint-requirements.txt
```
To launch **pytest**:
```sh
pytest
```
To launch **flake8**:
```sh
flake8
```
To launch **pylint**:
```sh
pylint --output-format=text --rcfile=setup.cfg src/ test/ *.py
```

@ -2,3 +2,4 @@ pytest-xdist==2.2.1
setuptools==54.1.2 setuptools==54.1.2
pytest==6.2.2 pytest==6.2.2
pytest-cov==2.11.1 pytest-cov==2.11.1
psutil==5.9.0