Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove setup.cfg #377

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading