-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
216 lines (192 loc) · 5.64 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
[tool.poetry]
name = "bedspec"
version = "0.5.0"
description = "An HTS-specs compliant BED toolkit."
authors = ["Clint Valentine <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/clintval/bedspec"
repository = "https://github.com/clintval/bedspec"
keywords = ["bioinformatics", "BED", "NGS", "HTS", "interval"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: File Formats",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
include = ["CONTRIBUTING.md", "LICENSE"]
packages = [{ include = "bedspec" }, { include = "cgranges" }]
[tool.poetry.dependencies]
python = "^3.10.0,<4.0.0"
typeline = "^0.6"
typing-extensions = "^4.12"
[tool.poetry.dev-dependencies]
basedpyright = "^1.21"
mypy = "^1.13"
pytest = "^8.3"
pytest-cov = "^5.0"
pytest-doctestplus = "^1.2"
ruff = "^0.7"
[tool.poetry.build]
script = "build.py"
generate-setup-file = true
[build-system]
requires = ["poetry-core>=1.8", "setuptools>=70.1.1", "Cython>=3.0.10"]
build-backend = "poetry.core.masonry.api"
[tool.poe]
poetry_command = "task"
[tool.poe.tasks]
fix-format = "ruff format"
fix-lint = "ruff check --fix"
fix-all.ignore_fail = true
fix-all.sequence = [
"fix-format",
"fix-lint"
]
check-lock = "poetry check --lock"
check-format = "ruff format --check --diff"
check-lint = "ruff check"
check-tests = "pytest --doctest-glob='*.md'"
_check-mypy = "mypy"
_check-pyright = "basedpyright"
check-typing.sequence = [
"_check-mypy",
"_check-pyright"
]
check-all.ignore_fail = true
check-all.sequence = [
"check-lock",
"check-format",
"check-lint",
"check-tests",
"check-typing"
]
fix-and-check-all.ignore_fail = true
fix-and-check-all.sequence = [
"fix-all",
"check-all"
]
[tool.coverage.run]
omit = ["cgranges/*"]
[[tool.mypy.overrides]]
module = "Cython.Build"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "setuptools"
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "7.4"
addopts = [
"--color=yes",
"--cov-fail-under=80",
"--cov-report=term-missing",
"--cov",
"--cov=typeline",
"--doctest-modules",
"--doctest-plus",
"--import-mode=importlib",
"--ignore=build.py",
"--ignore=cgranges/",
]
doctest_plus = "enabled"
doctest_optionflags = [
"ELLIPSIS",
"IGNORE_EXCEPTION_DETAIL",
"NORMALIZE_WHITESPACE",
]
[tool.mypy]
files = ["build.py", "bedspec/", "tests/"]
strict_optional = false
strict_equality = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
enable_error_code = "ignore-without-code"
[tool.pyright]
include = ["bedspec/"]
reportAny = false
pythonVersion = "3.10"
[tool.ruff]
include = ["build.py", "bedspec/**", "tests/**"]
line-length = 100
target-version = "py310"
output-format = "full"
preview = true
[tool.ruff.lint]
select = [
"ARG", # Unused arguments
"C901", # McCabe complexity
"B", # bugbear
"D", # pydocstyle (docstrings. We have the "google" convention enabled)
"D204", # Blank line between class docstring and first (__init__) method
"D212", # summary line should be located on the same line as opening quotes
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # PEP8 naming
"W", # pycodestyle warnings
"Q" # flake8-quotes
]
ignore = [
"E203",
"E701",
"D213", # Summary line should be located on the line after opening quote
"D100", # missing docstring in public module
"D104", # missing docstring in public package
]
unfixable = ["B"]
[tool.ruff.lint.mccabe]
max-complexity = 13
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.git-cliff.changelog]
header = ""
trim = true
body = """
{% for group, commits in commits | group_by(attribute="group") %}
## {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | upper_first }} ({{ commit.id | truncate(length=8, end="") }})\
{% endfor %}
{% endfor %}\n
"""
[tool.git-cliff.git]
conventional_commits = true
commit_parsers = [
{ message = "^.+!:*", group = "Breaking"},
{ message = "^security*", group = "Security"},
{ message = "^feat*", group = "Features"},
{ message = "^fix*", group = "Bug Fixes"},
{ message = "^docs*", group = "Documentation"},
{ message = "^perf*", group = "Performance"},
{ message = "^refactor*", group = "Refactor"},
{ message = "^style*", group = "Styling"},
{ message = "^test*", group = "Testing"},
{ message = "^chore\\(release\\):*", skip = true},
{ message = "^chore*", group = "Miscellaneous Tasks"},
{ body = ".*security", group = "Security"}
]
filter_commits = false