Skip to content

Commit 88765de

Browse files
committed
lint: initialize mypy
Ignore the .mypy_cache/ directories. Also use global 'ignore_missing_imports = True', otherwise we'll see a new errors like this: Error: MYPY_ERROR: coprs_frontend/coprs/auth.py:8: mypy[error]: Skipping analyzing "ldap": module is installed, but missing library stubs or py.typed marker Error: MYPY_ERROR: coprs_frontend/coprs/auth.py:9: mypy[error]: Skipping analyzing "openid_teams.teams": module is installed, but missing library stubs or py.typed marker Error: MYPY_NOTE: coprs_frontend/coprs/auth.py:9: mypy[note]: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports We can find a better way to handle similar problems in the future. Merges: fedora-copr#2353
1 parent c107ac5 commit 88765de

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ _tmp/
1717
.cache/
1818
.pytest_cache/
1919
.localwrap/
20+
.mypy_cache/
2021

2122
backend/docs/build
2223

.mypy.ini

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[mypy]
2+
ignore_missing_imports = True

0 commit comments

Comments
 (0)