-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
129 lines (121 loc) · 3.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
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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "AngiospermTraiter"
version = "0.0.1"
readme = "README.md"
description = ""
license = {file = "LICENSE"}
authors = [{name="Raphael LaFrance", email="raphael.lafrance@gmail.com"}]
requires-python = ">=3.12"
dependencies = [
"Jinja2",
"beautifulsoup4",
"ftfy",
"lxml",
"pandas",
"pillow",
"regex",
"spacy",
"tqdm",
]
optional-dependencies.dev = [
"build",
"pre-commit",
"pre-commit-hooks",
"ruff",
"ruff-lsp",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["angiosperm"]
namespaces = false
[project.scripts]
[tool.setuptools]
py-modules = []
[tool.ruff]
target-version = "py312"
show-fixes = true
lint.select = [
"A",
"ARG",
"B",
"BLE",
"C4",
"C90",
"COM",
"D",
"E",
"EM",
"EXE",
"F",
"FA",
"FBT",
"FIX",
"FLY",
#"FURB", # refurb
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
#"LOG", # flake8-logging
"N",
"NPY",
"PD",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"T10",
"T20",
"TCH",
"TD",
"TID",
"TRY",
"UP",
"W",
]
lint.ignore = [
"A003", # Class attribute is shadowing a Python builtin
"COM812", # Trailing comma missing
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in public method
"D107", # Missing docstring in public __init__
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"FIX002", # Line contains TO DO
"ISC001", # Implicitly concatenated string literals on one line
"N818", # Exception name {name} should be named with an Error suffix
"PD901", # Avoid using the generic variable name df for DataFrames
"PLR0913", # Too many arguments in function definition ({c_args} > {max_args})
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
"PLW0603", # Using the global statement to update {name} is discouraged
"PT009", # Use a regular assert instead of unittest-style {assertion}
"RET504", # Unnecessary assignment to {name} before return statement
"RUF001", # String contains ambiguous {}. Did you mean {}?
"RUF003", # Comment contains ambiguous "-"
"SIM114", # Combine if branches using logical or operator
"SIM117", # Use a single with statement with multiple contexts instead of nested with statements
"SLF001", # Private member accessed: {access}
"T201", # print found
"TD002", # Missing author in TO DO
"TD003", # Missing issue link on the line following this TO DO
]