Skip to content

Commit d5d5c23

Browse files
committed
chore: migrate tool config to pyproject.toml
Signed-off-by: Frost Ming <me@frostming.com>
1 parent 6fdd494 commit d5d5c23

File tree

3 files changed

+26
-55
lines changed

3 files changed

+26
-55
lines changed

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,28 @@ docs = [
109109
[tool.pdm.scripts]
110110
build = "python scripts/build.py"
111111
docs = "mkdocs serve"
112+
113+
[tool.coverage.report]
114+
exclude_lines = [
115+
"pragma: no cover",
116+
"def __repr__",
117+
"if self.debug",
118+
"raise AssertionError",
119+
"raise NotImplementedError",
120+
"if __name__ == .__main__.:",
121+
"if TYPE_CHECKING:",
122+
]
123+
ignore_errors = true
124+
125+
[tool.mypy]
126+
ignore_missing_imports = true
127+
disallow_incomplete_defs = true
128+
disallow_untyped_calls = true
129+
disallow_untyped_defs = true
130+
disallow_untyped_decorators = true
131+
explicit_package_bases = true
132+
namespace_packages = true
133+
134+
[[tool.mypy.overrides]]
135+
module = "pdm.backend._vendor.*"
136+
ignore_errors = true

runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8
1+
3.10

setup.cfg

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)