-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
187 lines (159 loc) · 4 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
[project]
name = "opseq"
version = "0.1.2"
authors = [
{name = "Alexander Rodionov", email = "[email protected]"},
]
description = "a python library to build permutations sequences with various constraints"
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"tqdm",
]
[project.optional-dependencies]
dev = [
"bumpver",
"pre-commit",
"pytest",
]
[project.urls]
source = "https://github.com/tandav/opseq"
# docs = "https://tandav.github.io/opseq"
issues = "https://tandav.github.io/opseq/issues"
"release notes" = "https://tandav.github.io/opseq/releases"
# ==============================================================================
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
# [tool.setuptools]
# packages = ["pitch_detectors"]
# package-dir = {"" = "src"}
# [tool.setuptools.packages.find]
# exclude = ["data*"]
# ==============================================================================
[tool.bumpver]
current_version = "v0.1.2"
version_pattern = "vMAJOR.MINOR.PATCH"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'^version = "{pep440_version}"',
'^current_version = "{version}"',
]
"opseq/__init__.py" = [
"^__version__ = '{pep440_version}'",
]
# ==============================================================================
[tool.mypy]
# todo: review this
pretty = true
show_traceback = true
color_output = true
allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = true
implicit_reexport = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_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
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
# ==============================================================================
[tool.ruff]
select = ["ALL"]
ignore = [
"E501", # line too long
"PLR0913", # too-many-arguments
"Q", # quotes
"D", # docstrings
"ERA001",
"N802",
"ANN101",
"ANN102",
"ANN401",
"EM101",
"EM102",
"TRY003",
"SLF001",
"S301",
"S311",
"S314",
"TD002",
"TD003",
"TD004",
"FIX002",
"FIX004",
"B028",
]
[tool.ruff.per-file-ignores]
"tests/*" = [
"S101",
"PLR2004",
"ANN",
"PT001",
"PT011",
"PT023",
"N806",
]
[tool.ruff.isort]
force-single-line = true
# ==============================================================================
[tool.pylint.MASTER]
# load-plugins=[
# "pylint_per_file_ignores",
# ]
ignore-paths = '^tests/*'
[tool.pylint.messages-control]
disable = [
"missing-function-docstring",
"missing-class-docstring",
"missing-module-docstring",
"line-too-long",
"import-outside-toplevel",
"unused-variable",
"too-many-arguments",
"too-many-instance-attributes",
"too-many-locals",
"too-few-public-methods",
"import-error",
"unspecified-encoding",
"redefined-outer-name",
"invalid-name",
"protected-access",
"fixme",
"duplicate-code",
"cyclic-import",
]
# [tool.pylint-per-file-ignores]
# "/tests/" = "redefined-outer-name,pointless-statement"
# https://github.com/christopherpickering/pylint-per-file-ignores/issues/76
# ==============================================================================
[tool.autopep8]
ignore="E501,E701"
recursive = true
aggressive = 3
# ==============================================================================
[tool.pyright]
venvPath = "/Users/tandav/.cache/.virtualenvs"
venv = "opseq"
exclude = [
"src/opseq/util/sequence_builder.py",
]
# ==============================================================================
[tool.flake8]
ignore = ['E501', 'W503', 'W504', 'FNE008']