lint: Add flake8 rule E302 to the flake8 workflow job

This commit is contained in:
Drikus Roor
2023-04-12 23:04:59 +02:00
committed by Drikus Roor
parent 4afd0a3714
commit 04dc0f7149
2 changed files with 3 additions and 3 deletions

View File

@@ -342,7 +342,7 @@ coverage run -m unittest discover tests
## Run linter
This project uses [flake8](https://flake8.pycqa.org/en/latest/) for linting. We currently use the following rules: `E303,W293,W291,W292,E305,E231`. See the [flake8 rules](https://www.flake8rules.com/) for more information.
This project uses [flake8](https://flake8.pycqa.org/en/latest/) for linting. We currently use the following rules: `E303,W293,W291,W292,E305,E231,E302`. See the [flake8 rules](https://www.flake8rules.com/) for more information.
To run the linter, run the following command:
@@ -350,5 +350,5 @@ To run the linter, run the following command:
flake8 scripts/ tests/
# Or, if you want to run flake8 with the same configuration as the CI:
flake8 scripts/ tests/ --select E303,W293,W291,W292,E305,E231
flake8 scripts/ tests/ --select E303,W293,W291,W292,E305,E231,E302
```