-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
96 lines (84 loc) · 1.94 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]
authors = [
{name = "Tohrusky", email = "[email protected]"}
]
classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: C++"
]
dependencies = [
"opencv-python",
"pillow"
]
license = {text = "BSD-3-Clause"}
name = "waifu2x-ncnn-py"
readme = "README.md"
requires-python = ">=3.8"
version = "2.0.0"
[project.urls]
Homepage = "https://github.com/Final2x/waifu2x-ncnn-py"
Repository = "https://github.com/Final2x/waifu2x-ncnn-py"
[tool.coverage.run]
omit = ["src/waifu2x_ncnn_py"]
[tool.mypy]
disable_error_code = "attr-defined"
disallow_any_generics = false
ignore_missing_imports = true
strict = true
warn_return_any = false
[tool.pdm.dev-dependencies]
lint = [
"pre-commit",
"ruff",
"mypy"
]
test = [
"pytest",
"pytest-cov",
"scikit-image"
]
[tool.pdm.scripts.lint]
composite = [
"mypy src/waifu2x_ncnn_py tests",
"ruff check . --fix --exit-non-zero-on-fix",
"ruff format ."
]
help = "Check code style against linters"
[tool.pdm.scripts.post_install]
composite = [
"pre-commit install"
]
help = "Install the pre-commit hook"
[tool.pdm.scripts.test]
cmd = "pytest tests --cov=src --cov-report=xml --cov-report=html"
help = "Run tests with coverage"
[tool.ruff]
extend-ignore = ["B018", "B019"]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"YTT" # flake8-2020
]
fixable = ["ALL"]
line-length = 120
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.isort]
combine-as-imports = true
known-first-party = ["pdm"]
[tool.ruff.mccabe]
max-complexity = 10