mirror of
https://github.com/gramps-project/gramps
synced 2025-10-05 23:52:46 +02:00
Add mypy configuration
This commit is contained in:
2
.github/workflows/gramps-ci.yml
vendored
2
.github/workflows/gramps-ci.yml
vendored
@@ -70,7 +70,7 @@ jobs:
|
||||
- name: Run mypy static type checker
|
||||
run: |
|
||||
python3 -m pip install mypy
|
||||
mypy gramps test --ignore-missing-imports --exclude '.*gpr\.py$'
|
||||
mypy
|
||||
- name: Run unit test suite
|
||||
run: |
|
||||
export GDK_BACKEND=-
|
||||
|
45
mypy.ini
Normal file
45
mypy.ini
Normal file
@@ -0,0 +1,45 @@
|
||||
[mypy]
|
||||
files = ./gramps, ./test
|
||||
exclude = .*gpr\.py$
|
||||
|
||||
[mypy-berkeleydb.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-bsddb3.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-cairo.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-gi.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-guitest.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-icu.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-imagesize.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-jsonschema.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-lxml.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-orjson.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-PIL.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-pycountry.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-PyICU.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-sets.*]
|
||||
ignore_missing_imports = True
|
Reference in New Issue
Block a user