Skip to content

Commit

Permalink
setup.py pyproject.toml fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
viblo committed Sep 7, 2024
1 parent 9421bf4 commit 53b98ad
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 41 deletions.
42 changes: 41 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
[build-system]
requires = ["setuptools", "wheel", "cffi >= 1.15.0"]
build-backend = "setuptools.build_meta"
build-backend = "setuptools.build_meta"


[tool.isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88


[tool.mypy]
disallow_untyped_defs = True
strict_equality = True
warn_unused_configs = True
disallow_any_generics = True
warn_redundant_casts = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_incomplete_defs = True
no_implicit_optional = True
no_implicit_reexport = True
check_untyped_defs = True
warn_unused_ignores = True

# Because many values are returned directly from CFFI/Chipmunk (and are therefore Any)
warn_return_any = False

# Because decorators are mostly from CFFI used for callbacks (and therefor untyped)
disallow_untyped_decorators = False

exclude = [
'^pymunk\examples\.*$', # exclude examples from type checking
]


[mypy-pymunk.util]
# This is not typed
disallow_untyped_defs = False
check_untyped_defs = False
40 changes: 0 additions & 40 deletions setup.cfg

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
packages = ["pymunk", "pymunk.tests"]
exclude_package_data = {"pymunk.examples": ["*.*"]}


setup(
name="pymunk",
url="http://www.pymunk.org",
Expand Down

0 comments on commit 53b98ad

Please sign in to comment.