Skip to content

Commit 2880bf1

Browse files
authored
Merge pull request #105 from jmeridth/jm-linting-config-setup-changes
chore: linting config setup
2 parents d55bacb + 273ae6f commit 2880bf1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/linters/.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
exclude = venv,.venv,.git,__pycache__
3+
extend-ignore = C901
4+
max-line-length = 150
5+
statistics = True

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ clean:
88

99
.PHONY: lint
1010
lint:
11-
pylint --rcfile=.pylintrc --fail-under=9.0 *.py
11+
pylint --rcfile=.github/linters/.python-lint --fail-under=9.0 *.py
1212
# stop the build if there are Python syntax errors or undefined names
13-
flake8 . --count --select=E9,F63,F7,F82 --exclude .venv --show-source --statistics
13+
flake8 . --config=.github/linters/.flake8 --count --select=E9,F63,F7,F82 --exclude .venv --show-source
1414
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
15-
flake8 . --count --exclude .venv --exit-zero --max-complexity=10 --max-line-length=127 --statistics
15+
flake8 . --config=.github/linters/.flake8 --count --exclude .venv --exit-zero --max-complexity=10 --max-line-length=127
1616
black .

0 commit comments

Comments
 (0)