Skip to content

Commit

Permalink
Merge pull request #377 from lazka/remove-setup.cfg
Browse files Browse the repository at this point in the history
Remove setup.cfg
  • Loading branch information
lazka authored Sep 2, 2024
2 parents bf2c7ec + 2b21a74 commit 0f7e67c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 34 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
1 change: 0 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ endif
for_wheel = get_option('wheel')

fs = import('fs')
fs.copyfile('setup.cfg', 'setup.cfg')

cc = meson.get_compiler('c')

Expand Down
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 0f7e67c

Please sign in to comment.