You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyproject.toml
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ name = "tsplit"
9
9
description = "Extract terminal repeats from retrotransposons (LTRs) or DNA transposons (TIRs). Compose synthetic MITES from complete DNA transposons."
10
10
readme = "README.md"
11
11
requires-python = ">=3.8"
12
-
license = { text = "MIT" }
12
+
license = { text = "GPL-3.0-or-later" }
13
13
authors = [{ name = "Adam Taranto" }]
14
14
15
15
# Classifiers for project categorization
@@ -35,9 +35,11 @@ dev = [
35
35
"mkdocs",
36
36
"mkdocstrings-python",
37
37
"mkdocstrings",
38
+
"mypy",
38
39
"notebook",
39
40
"numpydoc-validation",
40
41
"pre-commit",
42
+
"pydocstyle",
41
43
"pymdown-extensions",
42
44
"pytest-cov",
43
45
"pytest",
@@ -101,6 +103,9 @@ ignore = [
101
103
"B905", # `zip()` without an explicit `strict=` parameter
102
104
]
103
105
106
+
# Don't auto-fix docstring issues - they're too fragile
107
+
unfixable = ["D"]
108
+
104
109
[tool.ruff.lint.per-file-ignores]
105
110
"tests/*" = ["D"] # Ignore all pydocstyle rules in tests
106
111
@@ -137,6 +142,11 @@ override_SS05 = [ # allow docstrings to start with these words
137
142
'^Access ',
138
143
]
139
144
145
+
# Don't process filepaths that match these regex patterns
146
+
exclude_files = [
147
+
'^_version\\.py$',
148
+
]
149
+
140
150
[tool.mypy]
141
151
python_version = "3.10"
142
152
warn_return_any = true
@@ -145,5 +155,5 @@ disallow_untyped_defs = true
145
155
146
156
[tool.pydocstyle]
147
157
convention = "numpy"
148
-
# Ignore files in directories named "tests"
149
-
match-dir = "((?!tests).)*"
158
+
match-dir = "[^\\.].*"# matches all dirs that don't start with a dot
159
+
match = "(?!test_).*\\.py"# matches files that don't start with 'test_' but end with '.py'
help='Select alignment method: "blastn" or "nucmer".(Default: blastn)',
132
132
)
133
+
tir_parser.add_argument(
134
+
'--both',
135
+
action='store_true',
136
+
default=False,
137
+
help='Report both left and right terminal repeats when splitmode is one of {all, split, external}. Suffixes will be "_L_TIR" and "_R_TIR". Right TIR will be reverse complemented for alignment with left TIR.',
help='Select alignment method: "blastn" or "nucmer".(Default: blastn)',
214
220
)
221
+
ltr_parser.add_argument(
222
+
'--both',
223
+
action='store_true',
224
+
default=False,
225
+
help='Report both left and right terminal repeats when splitmode is one of {all, split, external}. Suffixes will be "_L_LTR" and "_R_LTR". Right LTR will be in the same orientation as left LTR.',
0 commit comments