From 5154f19b6a7554bd7bdb2f6e89b507593080d526 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Fri, 15 Nov 2024 17:09:46 -0500 Subject: [PATCH] build: move setup.cfg to pyproject.toml --- pyproject.toml | 12 +++++++++++- setup.cfg | 20 -------------------- 2 files changed, 11 insertions(+), 21 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 6877bdafb..53c95ff20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -141,7 +141,6 @@ skip = ".tox,.git,build,.*_cache,__pycache__,*.tar,*.snap,*.png,./node_modules,. quiet-level = 3 check-filenames = true - [tool.mypy] python_version = "3.10" exclude = [ @@ -171,6 +170,17 @@ no_implicit_optional = true module = ["tests.*"] strict = false +[tool.pydocstyle] +ignore = [ + "D105", # Missing docstring in magic method (reason: magic methods already have definitions) + "D107", # Missing docstring in __init__ (reason: documented in class docstring) + "D203", # 1 blank line required before class docstring (reason: pep257 default) + "D204", + "D213", # Multi-line docstring summary should start at the second line (reason: pep257 default) + "D215", # Section underline is over-indented (reason: pep257 default) +] + + [tool.ruff] line-length = 88 target-version = "py310" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index c881bfb25..000000000 --- a/setup.cfg +++ /dev/null @@ -1,20 +0,0 @@ -[bdist_wheel] -universal = 0 - -[flake8] -exclude = docs venv .venv .mypy_cache .direnv .git __pycache__ -max-line-length = 88 -# E203 whitespace before ':' -# E501 line too long -extend-ignore = E203, E501 - -[pydocstyle] -# D105 Missing docstring in magic method (reason: magic methods already have definitions) -# D107 Missing docstring in __init__ (reason: documented in class docstring) -# D203 1 blank line required before class docstring (reason: pep257 default) -# D213 Multi-line docstring summary should start at the second line (reason: pep257 default) -# D215 Section underline is over-indented (reason: pep257 default) -ignore = D105, D107, D203, D204, D213, D215 - -[aliases] -test = pytest