-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·101 lines (92 loc) · 1.66 KB
/
pyproject.toml
File metadata and controls
executable file
·101 lines (92 loc) · 1.66 KB
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
97
98
99
100
101
[project]
name = "my-project"
version = "0.1.0"
dependencies = [
"numba",
"numpy==1.26.4",
"pandas",
"seaborn",
"ruff",
"mypy",
"scipy",
"timm",
"tensorboardX",
"ipykernel",
"tensorboard"
]
[tool.ruff]
preview = true
fix = true
include = ['*.py']
exclude = [
".venv",
".git",
"*.pyc",
"__pycache__",
"models/losses/rotated_iou_loss",
"evaluation_code",
"docker",
]
lint.ignore = ["S101"]
line-length = 88
# See https://beta.ruff.rs/docs/rules/ for more information
lint.select = [
"C9",
"E",
"F",
"W",
"B",
"I",
"N",
"UP",
"ANN",
"A",
"S",
"COM",
"C4",
"ICN",
"PYI",
"PIE",
"Q",
"TCH",
"PTH",
"NPY",
"RUF",
"DJ",
"SIM",
"PD",
"FURB",
"TID",
"FBT",
]
target-version = "py311"
# show-source = true
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.isort]
force-single-line = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["id", "type", "help"]
[tool.ruff.lint.flake8-import-conventions]
[tool.ruff.lint.flake8-import-conventions.aliases]
constants = "const"
scrapper_utils = "su"
[tool.pytest.ini_options]
python_files = ["*_test.py"]
addopts = "-p no:warnings -s"
testpaths = ["tests"]
[tool.mypy]
python_version = "3.11"
mypy_path = "."
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
exclude = ["tests"]
disable_error_code = "import-untyped"