Skip to content

Commit 53b98ad

Browse files
committed
setup.py pyproject.toml fixes
1 parent 9421bf4 commit 53b98ad

File tree

3 files changed

+42
-41
lines changed

3 files changed

+42
-41
lines changed

pyproject.toml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
11
[build-system]
22
requires = ["setuptools", "wheel", "cffi >= 1.15.0"]
3-
build-backend = "setuptools.build_meta"
3+
build-backend = "setuptools.build_meta"
4+
5+
6+
[tool.isort]
7+
multi_line_output = 3
8+
include_trailing_comma = True
9+
force_grid_wrap = 0
10+
use_parentheses = True
11+
ensure_newline_before_comments = True
12+
line_length = 88
13+
14+
15+
[tool.mypy]
16+
disallow_untyped_defs = True
17+
strict_equality = True
18+
warn_unused_configs = True
19+
disallow_any_generics = True
20+
warn_redundant_casts = True
21+
disallow_subclassing_any = True
22+
disallow_untyped_calls = True
23+
disallow_incomplete_defs = True
24+
no_implicit_optional = True
25+
no_implicit_reexport = True
26+
check_untyped_defs = True
27+
warn_unused_ignores = True
28+
29+
# Because many values are returned directly from CFFI/Chipmunk (and are therefore Any)
30+
warn_return_any = False
31+
32+
# Because decorators are mostly from CFFI used for callbacks (and therefor untyped)
33+
disallow_untyped_decorators = False
34+
35+
exclude = [
36+
'^pymunk\examples\.*$', # exclude examples from type checking
37+
]
38+
39+
40+
[mypy-pymunk.util]
41+
# This is not typed
42+
disallow_untyped_defs = False
43+
check_untyped_defs = False

setup.cfg

Lines changed: 0 additions & 40 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
packages = ["pymunk", "pymunk.tests"]
2525
exclude_package_data = {"pymunk.examples": ["*.*"]}
2626

27+
2728
setup(
2829
name="pymunk",
2930
url="http://www.pymunk.org",

0 commit comments

Comments
 (0)