-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
96 lines (86 loc) · 2.24 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
91
92
93
94
95
96
[build-system]
build-backend = "pdm.backend"
requires = [ "pdm-backend" ]
[project]
name = "zeed-movslib"
version = "0.0.2"
requires-python = "==3.12.*"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"jdk4py>=21.0.4.1",
"openpyxl>=3.1.5",
"pypdf>=4.2",
"tabula-py[jpype]>=2.9.3",
]
urls.Homepage = "https://github.com/ZeeD/movslib"
urls.Repository = "https://github.com/ZeeD/movslib.git"
[tool.pdm]
distribution = true
plugins = [ "pdm-version" ]
[tool.pdm.dev-dependencies]
dev = [
"coverage>=7.5.4",
"mypy>=1.10.1",
"pandas-stubs>=2.2.2.240603",
"pyproject-fmt>=2.2.4",
"ruff>=0.5",
"types-openpyxl>=3.1.5.20240918",
]
[tool.pdm.build]
excludes = [ "tests" ]
[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