Skip to content

Commit

Permalink
Remove setup.cfg
Browse files Browse the repository at this point in the history
* flake8 doesn't support pyproject.toml, so move to .flake8
* coverage requires the toml extra to read pyproject.toml, so add that
* mypy supports it by default

Remove since we want to get rid of setup.py, so might as well remove
setup.cfg as well.
  • Loading branch information
lazka committed Sep 2, 2024
1 parent bf2c7ec commit a4416c8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 33 deletions.
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
ignore=E402,E741
builtins=buffer,unichr
max-line-length = 100
exclude = build
32 changes: 31 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,40 @@ mypy = {version = "1.8.0", markers = "platform_python_implementation != 'PyPy'"}
flake8 = "^7.0.0"
Sphinx = "^6.2.1"
sphinx-rtd-theme = "^2.0.0"
coverage = "^7.2.3"
coverage = {extras = ["toml"], version = "^7.2.3"}
sphinx-autobuild = "^2021.3.14"
setuptools = "^69.0.3"

[tool.coverage.run]
include = [
"cairo/*",
"tests/*"
]

[tool.mypy]
disallow_any_unimported = true
disallow_any_expr = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_return_any = true
no_implicit_optional = true
disallow_any_decorated = true
disallow_any_explicit = false
strict_optional = true
follow_imports = "silent"
exclude = ["^(examples/|build|docs/)"]

[[tool.mypy.overrides]]
module = "setup"
ignore_errors = true

[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true

[tool.meson-python.args]
setup = ["-Dwheel=true", "-Dtests=false"]

Expand Down
32 changes: 0 additions & 32 deletions setup.cfg

This file was deleted.

0 comments on commit a4416c8

Please sign in to comment.