Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (70 loc) · 1.67 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (70 loc) · 1.67 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
[project]
name = "qr-generator"
version = "0.1.0"
description = "Flask QR code generator with artistic image overlay"
requires-python = ">=3.14"
dependencies = [
"Flask>=3.1.3",
"Flask-WTF>=1.2.1",
"pillow>=11.0",
"qrcode-artistic>=3.0.2",
"segno>=1.6.1",
]
[dependency-groups]
dev = [
"pre-commit>=4.2.0",
"ruff>=0.11.6",
"ty>=0.0.20",
"codespell>=2.4.1",
"bandit[toml]",
"pytest>=9.0.2",
"pytest-flask",
"pytest-cov>=6.1.1",
"commitizen>=4.13.9",
]
[tool.uv]
package = false
[tool.ruff]
line-length = 124
[tool.ruff.lint]
select = ["E", "F", "UP", "B", "SIM", "I", "RUF"]
ignore = ["RUF012"]
[tool.ruff.lint.isort]
known-first-party = ["utils", "app"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["F401", "F841"]
"test_*.py" = ["F401", "F841"]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
docstring-code-format = true
docstring-code-line-length = 124
[tool.pytest.ini_options]
pythonpath = ["."]
python_files = ["test_*.py"]
addopts = "--strict-markers"
markers = [
"unit: fast isolated tests with no IO",
"integration: tests that touch routes or the store",
"slow: tests that take more than a few seconds",
]
[tool.ty.environment]
python-version = "3.14"
extra-paths = ["."]
[tool.codespell]
skip = "uv.lock,./static,./.venv"
builtin = "clear"
quiet-level = 3
[tool.bandit]
exclude_dirs = [".venv", "tests"]
skips = ["B104"]
[tool.coverage.run]
source = ["utils", "app"]
[[tool.ty.overrides]]
include = ["utils/qr_generator.py"]
rules = { call-non-callable = "ignore" }
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.1.0"
tag_format = "v$version"
version_files = ["pyproject.toml:version"]