File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed 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" , " pyright" , " typeguard" ]
47+
4548[tool .setuptools ]
4649packages = [
4750 " elftools" ,
@@ -64,3 +67,18 @@ 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+ packages = " elftools"
79+ junit_format = " per_file"
80+
81+ [[tool .mypy .overrides ]]
82+ module = " elftools.construct.*"
83+ follow_imports = " skip"
84+ ignore_errors = true
You can’t perform that action at this time.
0 commit comments