This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
157 lines (150 loc) · 4.14 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "herbarium_phenology"
version = "0.1.1"
description = ""
license = { file = "LICENSE" }
authors = [{ name = "Raphael LaFrance", email = "rafelafrance@proton.me" }]
requires-python = ">=3.11"
dependencies = [
"Pillow",
"git-lfs",
"ipython",
"jupyter",
"jupyterlab",
"matplotlib",
"numpy",
"pandas",
"pyarrow",
"requests",
"scikit-learn",
"scikit-image",
"scipy",
"seaborn",
"spacy",
"torch",
"torchmetrics",
"torchvision",
"transformers",
"tqdm",
]
optional-dependencies.dev = [
"autopep8",
"bandit",
"black",
"ipyparallel",
"isort",
"jupyter_nbextensions_configurator",
"jupyterlab-code-formatter",
"jupyterlab-drawio",
"jupyterlab-git",
"jupyterlab-lsp",
"jupyterlab-spellchecker",
"nbdime",
"neovim",
"pre-commit",
"pre-commit-hooks",
"pydocstyle",
"pylint",
"python-lsp-server[all]",
"ruff",
"tensorboard",
"yapf",
]
[tool.setuptools]
py-modules = []
[tool.pycodestyle]
ignore = "E402"
[tool.black]
line-length = 88
target_version = ["py310"]
include = '\.pyi?$'
exclude = '''(
\.git
| \.mypy_cache
| \.venv
| build
| dist
| data
| junk
)'''
[tool.pylint]
max-line-length = 88
ignore = ["CVS"]
good-names = [
"i",
"j",
"k",
"x",
"y",
"_",
"x0",
"x1",
"x2",
"y0",
"y1",
"y2",
"lb",
"ln",
"df",
"lr",
]
design.max-args = 5 # Maximum number of arguments for function / method.
design.max-attributes = 7 # Maximum number of attributes for a class (see R0902).
design.max-bool-expr = 5 # Maximum number of boolean expressions in an if statement (see R0916).
design.max-branches = 12 # Maximum number of branch for function / method body.
design.max-locals = 15 # Maximum number of locals for function / method body.
design.max-parents = 7 # Maximum number of parents for a class (see R0901).
design.max-public-methods = 20 # Maximum number of public methods for a class (see R0904).
design.max-returns = 6 # Maximum number of return / yield for function / method body.
design.max-statements = 50 # Maximum number of statements in function / method body.
design.min-public-methods = 2 # Minimum number of public methods for a class (see R0903).
format.max-line-length = 79 # Maximum number of characters on a single line.
format.max-module-lines = 1000 # Maximum number of lines in a module.
logging.logging-format-style = "new" # The type of string formatting that logging methods do. `old` means using % formatting, `new` is for `{}` formatting.
logging.logging-modules = ["logging"] # Logging modules to check that the string format arguments are in logging function parameter format.
refactoring.max-nested-blocks = 5 # Maximum number of nested blocks for function / method body
reports.output-format = "parseable" # Set the output format. Available formats are text, parseable, colorized, json, and msvs (visual studio)
reports.reports = true # Tells whether to display a full report or only the messages.
reports.score = true # Activate the evaluation score.
similarities.min-similarity-lines = 4 # Minimum lines number of a similarity.
disable = [
"missing-module-docstring", # "C0114"
"missing-class-docstring", # "C0115"
"missing-function-docstring", # "C0116"
"too-few-public-methods", # "R0903"
"too-many-arguments", # "R0913"
]
[tool.pyright]
reportGeneralTypeIssues = "none"
reportMissingImports = false
[tool.ruff]
line-length = 88
extend-select = [
"BLE",
"C4",
"D",
"E",
"ERA",
"I",
"ISC",
"N",
"NPY",
"PD",
"PGH",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"T20",
"TCH",
"TID",
"UP",
"YTT",
]
show-fixes = true
ignore = ["D10", "D203", "D213", "ERA001", "PD901", "RET504", "RUF001", "S608", "SIM117", "T201", "TID252"]