-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
95 lines (83 loc) · 2.01 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
[build-system]
build-backend = "poetry-core.masonry.api"
requires = ["poetry-core"]
[tool.coverage.report]
exclude_also = [
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"except Exception as e"
]
[tool.coverage.run]
omit = [
"ccrestoration/arch/*",
"ccrestoration/vs/*",
"ccrestoration/util/device.py"
]
[tool.mypy]
disable_error_code = "attr-defined"
disallow_any_generics = false
disallow_subclassing_any = false
ignore_missing_imports = true
plugins = ["pydantic.mypy"]
strict = true
warn_return_any = false
[tool.poetry]
authors = ["Tohrusky"]
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
description = "an inference lib for image/video restoration with VapourSynth support"
homepage = "https://github.com/TensoRaws/ccrestoration"
license = "MIT"
name = "ccrestoration"
readme = "README.md"
repository = "https://github.com/TensoRaws/ccrestoration"
version = "0.1.2"
# Requirements
[tool.poetry.dependencies]
einops = "*"
opencv-python = "*"
pydantic = "*"
python = "^3.9"
tenacity = "*"
[tool.poetry.group.dev.dependencies]
numpy = "*"
pre-commit = "^3.7.0"
scikit-image = "*"
torch = "*"
torchvision = "*"
[tool.poetry.group.test.dependencies]
coverage = "^7.2.0"
pytest = "^8.0"
pytest-cov = "^4.0"
[tool.poetry.group.typing.dependencies]
mypy = "^1.8.0"
ruff = "^0.3.7"
types-requests = "^2.28.8"
[tool.ruff]
extend-ignore = ["B018", "B019", "RUF001", "PGH003", "PGH004", "RUF003", "E402", "RUF002"]
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
[tool.ruff.mccabe]
max-complexity = 10