File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed
Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,5 @@ MANIFEST
1010* .egg-info
1111.vscode
1212temp
13-
14-
15-
16-
13+ mypy.junit.xml
14+ mypy /
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ recursive-include examples *.py *.elf *.out
44recursive-include test *
55global-exclude *.py[cod]
66global-exclude __pycache__
7+ global-exclude .mypy_cache
78include README.rst
89include LICENSE
910include CHANGES
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ Homepage = "https://github.com/eliben/pyelftools"
4242Repository = " https://github.com/eliben/pyelftools.git"
4343Issues = " https://github.com/eliben/pyelftools/issues"
4444
45+ [dependency-groups ]
46+ typing = [" mypy[reports]" , " pyright" , " typeguard" ]
47+
4548[tool .setuptools ]
4649packages = [
4750 " elftools" ,
@@ -64,3 +67,20 @@ version = {attr = "elftools.__version__"}
6467
6568[tool .setuptools .package-data ]
6669elftools = [" py.types" ]
70+
71+ [tool .mypy ]
72+ error_summary = false
73+ disallow_any_generics = true
74+ disallow_untyped_defs = true
75+ disallow_incomplete_defs = true
76+ warn_redundant_casts = true
77+ warn_unused_ignores = true
78+ # html_report = "mypy"
79+ packages = " elftools"
80+ # junit_xml = "mypy.junit.xml"
81+ junit_format = " per_file"
82+
83+ [tool .pyright ]
84+ include = [
85+ " elftools" ,
86+ ]
You can’t perform that action at this time.
0 commit comments