-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
60 lines (50 loc) · 1.29 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
[project]
name = "qbuffer"
version = "2.4.0"
requires-python = ">=3.8"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
dev = ["pytest>=8.0.2"]
[tool.semantic_release]
# https://python-semantic-release.readthedocs.io/en/latest/configuration.html
version_toml = ["pyproject.toml:project.version"]
version_variables = ["src/qbuffer/__version__.py:VERSION"]
[tool.black]
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html
line-length = 100
skip-string-normalization = true
[tool.ruff]
line-length = 100
fix = true
show-fixes = true
output-format = "full"
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
extend-select = [
"W", # pycodestyle Warning
"I", # isort
"N", # pep8-naming
"S", # flake8-bandit
"PTH", # flake8-use-pathlib
"PGH", # pygrep-hooks
"TRY", # tryceratops
]
ignore = [
"E501", # line-too-long
"S101", # Use of `assert` detected
"TRY003", # raise-vanilla-args
"TRY400", # error-instead-of-exception
]
[tool.ruff.lint.isort]
# https://beta.ruff.rs/docs/settings/#isort
lines-after-imports = 2
force-single-line = true
force-sort-within-sections = true
known-local-folder = []
[tool.mypy]
ignore_missing_imports = true