-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (89 loc) · 1.92 KB
/
pyproject.toml
File metadata and controls
107 lines (89 loc) · 1.92 KB
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
[project]
name = "template-python"
version = "0.0.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
[dependency-groups]
dev = [
"pre-commit",
]
lint = [
"ruff",
"ty",
]
test = [
"pytest",
"pytest-cov",
]
[tool.uv]
default-groups = []
[tool.ruff]
target-version = "py312"
# Set the maximum line length to 88.
line-length = 88
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["C", "E", "F", "I", "W", "D"]
ignore = ["D100"]
extend-select = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = ["B"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ty.src]
include = ["src", "tests"]
[tool.ty.terminal]
error-on-warning = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"--cov=src",
"--cov-report=xml",
"--verbose",
]
[tool.coverage.run]
branch = true
source = ["src/"]
[tool.coverage.report]
show_missing = true
fail_under = 80
omit = ["tests/*"]
[tool.coverage.html]
directory = "htmlcov"
[tool.markdown.lint]
default = true
MD004 = false # ul-style - Unordered list style
MD007.indent = 2 # ul-indent - Unordered list indentation
MD013 = false # line-length - Line length
MD029 = false # ol-prefix - Ordered list item prefix
MD033 = false # no-inline-html Inline HTML
MD041 = false # first-line-heading/first-line-h1
MD046 = false # indented-code-blocks
MD059 = false # descriptive-link-text