Skip to content

Commit 32f028d

Browse files
committed
Fix mypy and pylint checks.
1 parent 7b401af commit 32f028d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/code-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
cache-dependency-path: "**/setup.cfg"
1414
- run: pip install -e .[all,test]
1515
- run: pip install mypy
16-
- run: mypy --install-types --non-interactive jsonargparse*/*.py
16+
- run: mypy jsonargparse*/*.py
1717
pylint:
1818
runs-on: ubuntu-latest
1919
steps:
@@ -25,4 +25,4 @@ jobs:
2525
cache-dependency-path: "**/setup.cfg"
2626
- run: pip install -e .[all,test]
2727
- run: pip install pylint
28-
- run: pylint --errors-only --disable=no-member jsonargparse*/*.py
28+
- run: pylint --rcfile=setup.cfg jsonargparse*/*.py

jsonargparse_tests/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
else:
1717
def nothing_decorator(func):
1818
return func
19-
responses_activate = nothing_decorator
19+
responses_activate = nothing_decorator # type: ignore
2020

2121

2222
is_posix = os.name == 'posix'

setup.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ dev =
5151
%(test)s
5252
%(doc)s
5353
pre-commit>=2.19.0
54+
tox>=3.25.0
5455
pylint>=1.8.3
5556
pycodestyle>=2.5.0
5657
mypy>=0.701
57-
tox>=3.25.0
58+
types-PyYAML>=6.0.11
59+
types-requests>=2.28.9
5860
doc =
5961
Sphinx>=1.7.9
6062
sphinx-rtd-theme>=0.4.3

0 commit comments

Comments
 (0)