Skip to content

Commit 97b6616

Browse files
committed
chore: more repo config stuff
catch up this repo with other ospo github action repo changes Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent 1a4a67e commit 97b6616

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.github/linters/.isort.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
profile = black

.github/linters/.mypy.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[mypy]
2+
disable_error_code = attr-defined, import-not-found
3+
4+
[mypy-github3.*]
5+
ignore_missing_imports = True

.github/linters/isort.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

Makefile

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

99
.PHONY: lint
1010
lint:
11-
pylint --rcfile=.github/linters/.python-lint --fail-under=9.0 *.py
1211
# stop the build if there are Python syntax errors or undefined names
13-
flake8 . --config=.github/linters/.flake8 --count --select=E9,F63,F7,F82 --exclude .venv --show-source
12+
flake8 . --config=.github/linters/.flake8 --count --select=E9,F63,F7,F82 --show-source
1413
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
15-
flake8 . --config=.github/linters/.flake8 --count --exclude .venv --exit-zero --max-complexity=10 --max-line-length=127
14+
flake8 . --config=.github/linters/.flake8 --count --exit-zero --max-complexity=15 --max-line-length=150
15+
isort --settings-file=.github/linters/.isort.cfg .
16+
pylint --rcfile=.github/linters/.python-lint --fail-under=9.0 *.py
17+
mypy --config-file=.github/linters/.mypy.ini *.py
1618
black .

requirements-test.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
black==24.3.0
22
flake8==7.0.0
3+
mypy==1.8.0
4+
mypy-extensions==1.0.0
35
pylint==3.1.0
46
pytest==8.1.1
57
pytest-cov==5.0.0
8+
types-python-dateutil==2.9.0.20240316
9+
types-requests==2.31.0.20240311

0 commit comments

Comments
 (0)