mirror of
https://github.com/fjosw/pyerrors.git
synced 2026-05-13 16:46:52 +02:00
[chore] Furture lint rules and removal of flake8
This commit is contained in:
parent
c896843664
commit
d9ffa33b2c
14 changed files with 107 additions and 68 deletions
|
|
@ -19,14 +19,14 @@ Please add docstrings to any new function, class or method you implement. The do
|
|||
|
||||
### Tests
|
||||
When implementing a new feature or fixing a bug please add meaningful tests to the files in the `tests` directory which cover the new code.
|
||||
We follow the [PEP8](https://peps.python.org/pep-0008/) code style which is checked by `flake8`.
|
||||
We follow the [PEP8](https://peps.python.org/pep-0008/) code style which is checked by `ruff`.
|
||||
For all pull requests tests are executed for the most recent python releases via
|
||||
```
|
||||
pytest -vv -Werror
|
||||
pytest --nbmake examples/*.ipynb
|
||||
flake8 --ignore=E501,W503 --exclude=__init__.py pyerrors
|
||||
ruff check pyerrors
|
||||
```
|
||||
The tests require `pytest`, `pytest-cov`, `pytest-benchmark`, `hypothesis`, `nbmake` and `flake8`. To install the test dependencies one can run `pip install pyerrors[test]`.
|
||||
The tests require `pytest`, `pytest-cov`, `pytest-benchmark`, `hypothesis` and `nbmake`. To install the test dependencies one can run `pip install pyerrors[test]`. Linting is done with `ruff`, which can be installed via `pip install ruff` or run ad-hoc with `uvx ruff check pyerrors`.
|
||||
Please make sure that all tests pass for a new pull requests.
|
||||
|
||||
To get a coverage report in html run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue