-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (78 loc) · 1.79 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (78 loc) · 1.79 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
[project]
name = "python-project-skeleton"
version = "0.1.0"
description = "A modern project skeleton for Python applications, designed to enforce best practices in testing, code quality, and automation from the very beginning."
readme = "README.md"
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
authors = [
{ name = "sebasbit", email = "sebastian.torres0426@gmail.com" }
]
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
requires-python = ">=3.12"
dependencies = []
[project.urls]
Repository = "https://github.com/sebasbit/python-project-skeleton"
[dependency-groups]
dev = [
{ include-group = "pre-commit" },
{ include-group = "tests" },
"ruff>=0.15.11",
]
pre-commit = [
"commitizen>=4.13.10",
"pre-commit>=4.5.1",
]
tests = [
"mypy>=1.20.1",
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-mock>=3.15.1",
]
[tool.uv]
default-groups = ["dev"]
[tool.pytest.ini_options]
pythonpath = "src"
testpaths = ["tests"]
filterwarnings = [
"error",
"default::UserWarning"
]
[tool.mypy]
python_version = "3.12"
files = ["src", "tests"]
show_error_codes = true
pretty = true
strict = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
check_untyped_defs = true
[tool.ruff]
src = ["src"]
fix = true
show-fixes = true
output-format = "full"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle error
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycodestyle warning
]
[tool.ruff.lint.isort]
force-single-line = true
order-by-type = false
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver2"
version_provider = "uv"
update_changelog_on_bump = true
major_version_zero = true