-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
90 lines (80 loc) · 2.12 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[build-system]
build-backend = "pdm.backend"
requires = [ "pdm-backend" ]
[project]
name = "zeed-movs-merger"
version = "0.0.0"
requires-python = "==3.12.*"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"zeed-movslib",
]
urls.Homepage = "https://github.com/ZeeD/movs-merger"
urls.Repository = "https://github.com/ZeeD/movs-merger.git"
scripts.movs-merger = "movsmerger.movsmerger:main"
[tool.pdm]
distribution = true
plugins = [ "pdm-version" ]
[tool.pdm.dev-dependencies]
dev = [
"mypy>=1.10.1",
"ruff>=0.5.0",
"coverage>=7.5.4",
"pyproject-fmt>=2.3.0",
]
[tool.pdm.scripts]
_.env = { PYTHONPATH = "src:tests" }
lint = { composite = [
"pyproject-fmt pyproject.toml",
"ruff format .",
"ruff check --exit-zero .",
"dmypy run .",
] }
tests = { composite = [
"coverage run -m unittest discover --verbose --locals --failfast --catch --start-directory tests",
"coverage report",
"coverage erase",
] }
[tool.ruff]
line-length = 80
src = [ "src", "tests" ]
fix = true
format.quote-style = "single"
format.skip-magic-trailing-comma = true
format.docstring-code-format = true
lint.select = [ "ALL" ]
lint.ignore = [
"ANN1", # disabled by me
"COM812", # conflicts with formatter
"D1", # disabled by me
"D203", # incompatible with D211
"D213", # incompatible with D212
"ISC001", # conflicts with formatter
"PT009", # disabled by me
"PT027", # disabled by me
"Q001", # conflicts with formatter
"Q002", # conflicts with formatter
]
lint.flake8-annotations.allow-star-arg-any = true
lint.flake8-quotes.docstring-quotes = "single"
lint.flake8-quotes.inline-quotes = "single"
lint.flake8-quotes.multiline-quotes = "single"
lint.flake8-type-checking.quote-annotations = true
lint.isort.force-single-line = true
[tool.pyproject-fmt]
column_width = 80
indent = 4
[tool.coverage.run]
branch = true
source = [ "src", "tests" ]
[tool.coverage.report]
show_missing = true
sort = "Cover"
skip_empty = true
[tool.mypy]
mypy_path = [ "src", "tests" ]
strict = true
warn_unused_configs = true