-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
119 lines (111 loc) · 2.72 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "traiter"
version = "2.2.2"
description = "Rule-based parsers for mining text from research sources"
readme = "README.md"
license = {file = "LICENSE"}
authors = [{name="Raphael LaFrance", email="[email protected]"}]
requires-python = ">=3.11"
dependencies = [
"regex",
"python-dateutil",
"spacy",
]
optional-dependencies.dev = [
"build",
"neovim",
"pre-commit",
"pre-commit-hooks",
"ruff",
"ruff-lsp",
]
[project.scripts]
[tool.setuptools]
py-modules = []
[tool.setuptools.packages.find]
where = ["."]
include = ["traiter"]
namespaces = false
[tool.ruff]
target-version = "py311"
show-fixes = true
lint.select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"D",
"UP",
"S",
"BLE",
"FBT",
"B",
# "A",
"COM",
"C4",
"T10",
"EM",
"EXE",
"FA",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"TCH",
"INT",
# "ARG",
"PTH",
"TD",
"FIX",
"PD",
"PGH",
"PL",
"TRY",
"FLY",
"NPY",
"PERF",
# "FURB",
# "LOG",
"RUF",
]
lint.ignore = [
"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
"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 {}?
"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
]