Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (54 loc) · 1.53 KB
/
Copy pathpyproject.toml
File metadata and controls
66 lines (54 loc) · 1.53 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
[project]
name = "python-template"
version = "0.1.0"
description = "python-template"
readme = "README.md"
requires-python = ">=3.13,<3.14"
dependencies = []
[dependency-groups]
test = ["pytest==9.1.1", "pytest-sugar==1.1.1", "pytest-cov==7.1.0"]
quality = ["pre-commit==4.6.0", "ruff==0.15.21"]
[tool.pytest]
addopts = ["-ra", "-v", "-l", "-m", "not integration"]
markers = [
"integration: tests that call real external dependencies (DB, external APIs, LLMs, ...)",
]
[tool.coverage.run]
# The package to measure with `pytest --cov`. Rename it together with the package.
source = ["python_template"]
[tool.ruff]
line-length = 119
# Respect exclude even for paths passed explicitly (pre-commit hooks)
force-exclude = true
# Exclude the following files and directories.
exclude = [
".git",
".hg",
".mypy_cache",
".tox",
".venv",
"_build",
"buck-out",
"build",
"dist",
"env",
"venv",
]
[tool.ruff.lint]
# Never enforce `E501` (line length violations).
ignore = ["C901", "E501", "E402"]
select = ["C", "E", "F", "I", "W"]
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"