-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
132 lines (116 loc) · 3.35 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[tool.poetry]
name = "panoptic-segmentation-experiments"
version = "0.0.1"
description = "Experiments with panoptic segmentation"
authors = ["Roman Kryvokhyzha <[email protected]>"]
keywords = ["PyTorch", "Panoptic Segmentation", "Instance Segmentation", "Semantic Segmentation"]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10, <3.12"
numpy = {version = "^1.23.5", optional = false}
pandas = {version = "^2.0.0", optional = false}
matplotlib = {version = ">=3.2, <=3.7.3", optional = false}
seaborn = {version = "^0.13.0", optional = false}
scikit-learn = {version = "^1.3.2", optional = false}
rich = {version = "^13.7.0", optional = false}
fire = {version = "^0.5.0", optional = false}
gdown = {version = "^4.7.1", optional = false}
rootutils = {version = "^1.0.7", optional = false}
tqdm = {version = "^4.66.1", optional = false}
joblib = {version = "^1.3.2", optional = false}
torch = {version = "2.1.1", optional = false}
torchvision = {version = "0.16.1", optional = false}
lightning = {version = "^2.1.2", optional = false}
torchmetrics = {version = "^1.2.0", optional = false}
tensorboard = {version = "^2.15.1", optional = false}
openmim = {version = "^0.3.9", optional = false}
mmdet = {version = "^3.2.0", optional = false}
cityscapesscripts = {version = "^2.2.2", optional = false}
panopticapi = {git = "https://github.com/cocodataset/panopticapi.git", rev = "master", optional = false}
hydra-core = {version = "1.3.2", optional = false}
hydra-colorlog = {version = "1.2.0", optional = false}
onnx = {version = "1.15.0", optional = true}
onnxruntime = {version = "1.16.3", optional = true}
[tool.poetry.extras]
onnx = [
"onnx", "onnxruntime",
]
[tool.poetry.dev-dependencies]
pre-commit = "^3.4.0"
[tool.black]
line-length = 120
preview = true
exclude = '''
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.vscode
| \.tox
| \.venv
| _build
| buck-out
| build
| configs
| .gitlab
| dist
)/
'''
[tool.ruff]
# all rules can be found here: https://beta.ruff.rs/docs/rules/
select = ["E", "F", "W", "I", "D"]
# max line length for black
line-length = 120
ignore=[
# space before : (needed for how black formats slicing)
"E203",
# do not assign a lambda expression, use a def
"E731",
# do not use variables named 'l', 'O', or 'I'
"E741",
# unable to detect undefined names
"F403",
# imported but unused
"F401",
# missing docstring in public module
"D100",
# missing docstring in public class
"D101",
# missing docstring in public method
"D102",
# missing docstring in public function
"D103",
# missing docstring in public package
"D104",
# missing docstring in magic method
"D105",
# missing docstring in `__init__`
"D107",
]
exclude=[
".git",
"__pycache__",
"dist",
".gitlab",
"configs",
"build",
]
[tool.ruff.per-file-ignores]
# It's fine not to put the import at the top of the file in the examples
# folder.
"scripts/*"=["E402"]
[tool.ruff.isort]
# Use a single line after each import block.
lines-after-imports = 2
[tool.nbqa.config]
black = "pyproject.toml"
ruff = "pyproject.toml"
[tool.nbqa.addopts]
ruff = ["--extend-ignore=E402"]
[tool.nbqa.mutate]
black = 1
ruff = 1
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"