-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
101 lines (91 loc) · 2.33 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
[tool.poetry]
name = "chirpdetector"
version = "0.0.1"
description = "Detect brief communication signals of weakly electric fish in the frequency domain"
authors = ["Patrick Weygoldt <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.11,<3.13"
numpy = "^1.26.1"
torch = "^2.1.0"
torchaudio = "^2.1.0"
torchvision = "^0.16.0"
matplotlib = "^3.8.0"
scikit-learn = "^1.3.2"
toml = "^0.10.2"
pandas = "^2.1.2"
pydantic = "^2.4.2"
rich = "^13.6.0"
click = "^8.1.7"
rich-click = "^1.7.1"
gridtools = {path = "../gridtools", develop = true}
albumentations = "^1.3.1"
h5py = "^3.10.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.5.0"
pytest-coverage = "^0.0"
pytest = "^7.4.3"
ruff = "^0.1.6"
pyright = "^1.1.337"
mkdocs-glightbox = "^0.3.5"
mkdocs-click = "^0.8.1"
[tool.poetry.scripts]
chirpdetector = "chirpdetector.chirpdetector:chirpdetector"
cpd = "chirpdetector.chirpdetector:chirpdetector"
testeval = "chirpdetector.evaluation.eval_detection:eval_detection_cli"
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = [
"W", # pycodestyle
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"ANN", # flake8-annotations
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
"EM", # flake8-error-msg
"EXE", # flake8-executable
"ICN", # flake8-import-conventions
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"PD", # pandas-vet
"PL", # pylint
"TRY", # tryceratops
"NPY", # numpy-specific
"I", # isort
"C90", # complexity (McCabe)
"N", # pep8-naming
"D", # pydocstyle
]
ignore = [
"COM812", # missing trailing comma
"TD002", # missing todo author
"TD003", # missing todo link
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.black]
line-length = 79
[tool.pyright]
include = ["chirpdetector", "tests"]
defineConstant = { DEBUG = true }
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.11"
pythonPlatform = "Linux"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"