use flake8 config file rather than command line flag

This commit is contained in:
emlys 2021-11-29 12:12:31 -08:00
parent 471ac9fef1
commit 64cd3adcd4
4 changed files with 8 additions and 6 deletions

2
.flake8 Normal file
View File

@ -0,0 +1,2 @@
[flake8]
builtins=_

View File

@ -22,9 +22,9 @@ jobs:
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
python -m flake8 src --count --select=E9,F63,F7,F82 --builtins=_ --show-source --statistics python -m flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
python -m flake8 src --count --builtins=_ --exit-zero --max-complexity=10 --max-line-length=127 --statistics python -m flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
build-windows-binaries: build-windows-binaries:
name: "Build windows binaries" name: "Build windows binaries"

View File

@ -30,9 +30,9 @@ jobs:
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
python -m flake8 src --count --select=E9,F63,F7,F82 --builtins=_ --show-source --statistics python -m flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
python -m flake8 src --count --builtins=_ --exit-zero --max-complexity=10 --max-line-length=127 --statistics python -m flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
run-model-tests: run-model-tests:
name: "Run model tests" name: "Run model tests"

View File

@ -36,8 +36,8 @@
Unreleased Changes Unreleased Changes (3.10)
------------------ -------------------------
* General: * General:
* Add a ``--language`` argument to the command-line interface, which will * Add a ``--language`` argument to the command-line interface, which will
translate model names, specs, and validation messages. translate model names, specs, and validation messages.