-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (122 loc) · 2.46 KB
/
pyproject.toml
File metadata and controls
137 lines (122 loc) · 2.46 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[project]
name = "precommit-ci-test"
authors = [
{email = "joseph.chiocchi@blastpoint.com", name = "Joseph Chiocchi"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"pydantic-settings",
"typer[all]",
]
description = "A Python project testing precommit ci"
dynamic = [
"version",
]
keywords = [
"copier-template",
"full-development-lifecycle",
"project-template",
"serious-scaffold",
]
readme = "README.md"
requires-python = ">=3.12"
[project.scripts]
precommit-ci-test-cli = "precommit_ci_test.cli:app"
[project.urls]
homepage = "https://github.com/blastpoint-inc/precommit-ci-test/"
issue = "https://github.com/blastpoint-inc/precommit-ci-test/issues"
[build-system]
build-backend = "pdm.backend"
requires = [
"pdm-backend",
]
[tool.coverage.report]
fail_under = 100
[tool.coverage.run]
source = [
"precommit_ci_test",
]
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
enable_error_code = [
"ignore-without-code",
]
exclude = [
"build",
]
no_implicit_optional = true
show_error_codes = true
warn_return_any = true
warn_unused_ignores = true
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
doc = [
"Sphinx",
"autodoc-pydantic",
"coverage",
"furo",
"git-changelog",
"mypy[reports]",
"myst-parser",
"pytest",
"sphinx-autobuild",
"sphinx-click",
"sphinx-design",
"sphinx-togglebutton",
]
lint = [
"mypy",
"ruff",
"toml-sort",
]
test = [
"coverage",
"pytest",
]
pre-commit = [
"pre-commit",
]
[tool.pdm.version]
source = "scm"
[tool.pytest.ini_options]
addopts = "-l -s --durations=0"
log_cli = true
log_cli_level = "info"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_format = "%(asctime)s %(levelname)s %(message)s"
minversion = "6.0"
[tool.ruff]
fix = true
src = ["src"]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"RUF100", # Unused noqa directive
"S", # flake8-bandit
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warning
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tomlsort]
all = true
in_place = true
no_comments = false
sort_first = ["project", "project.name"]
spaces_before_inline_comment = 2
trailing_comma_inline_array = true