diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a5c5fc1..585584e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -32,10 +32,7 @@ jobs: python -m pip install -e '.[dev]' - name: Lint with flake8 run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + flake8 . --count --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | pytest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..951390d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,3 @@ +- repo: https://github.com/pycqa/flake8 + hooks: + - id: flake8