-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
177 lines (157 loc) · 5.84 KB
/
pyproject.toml
File metadata and controls
177 lines (157 loc) · 5.84 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[build-system]
build-backend = "uv_build"
requires = ["uv_build>=0.9.26,<2.0"]
[dependency-groups]
dev = [
"calcipy[recommended]>=6.0.0",
"pytest-shell-utilities>=1.9.7",
"types-pyyaml>=6.0.12.20240917",
"types-setuptools>=75.5.0.20241116",
]
[project]
authors = [
{email = "dev.act.kyle@gmail.com", name = "Kyle King"},
]
classifiers = [
"Development Status :: 1 - Planning",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
] # https://pypi.org/classifiers/
dependencies = [
"copier>=9.7.0",
"corallium>=2.3.0",
]
description = "Test copier templates"
keywords = ["calcipy_template"]
license = "MIT"
maintainers = []
name = "copier_template_tester"
readme = "docs/README.md"
requires-python = ">=3.10.11"
version = "2.4.0b0"
[project.scripts]
ctt = "copier_template_tester.main:run_cli"
[project.urls]
"Bug Tracker" = "https://github.com/kyleking/copier-template-tester/issues"
"Changelog" = "https://github.com/kyleking/copier-template-tester/blob/main/docs/docs/CHANGELOG.md"
"Documentation" = "https://copier-template-tester.kyleking.me"
"Repository" = "https://github.com/kyleking/copier-template-tester"
[tool.commitizen]
version = "2.4.0b0"
version_files = ["copier_template_tester/__init__.py:^__version", "pyproject.toml:^version"]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
enable_error_code = ["ignore-without-code", "possibly-undefined", "redundant-expr", "truthy-bool"]
extra_checks = true
files = ["copier_template_tester", "tests"]
no_implicit_reexport = true
plugins = [
]
python_version = "3.10"
show_column_numbers = true
show_error_codes = true
strict_equality = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pyright]
include = ["copier_template_tester", "tests"]
pythonVersion = "3.10"
[tool.ruff]
# Docs: https://github.com/charliermarsh/ruff
# Tip: uv run ruff rule RUF100
line-length = 120
target-version = 'py310'
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint]
ignore = [
'ANN002', # Missing type annotation for `*args`
'ANN003', # Missing type annotation for `**kwargs`
'ANN401', # Dynamically typed expressions (typing.Any) are disallowed in `pop_key`
'BLE001', # Do not catch blind exception: `Exception`
'COM812', # Conflicts with formatter
'CPY001', # Missing copyright notice at top of file
'D203', # "1 blank line required before class docstring" (Conflicts with D211)
'D213', # "Multi-line docstring summary should start at the second line" (Conflicts with D212)
'DOC201', # Missing "Returns" in docstring; prefer minimal docstrings
'DOC501', # Raised exception `RuntimeError` missing from docstring
'EM101', # Exception must not use a string literal, assign to variable first
'FIX001', # Line contains FIXME
'FIX002', # Line contains TODO
'FIX004', # Line contains HACK
'PLR0913', # Too many arguments in function definition (6 > 5)
'RUF067', # `__init__` module should only contain docstrings and re-exports
'TC001', # Move application import `tail_jsonl.config.Config` into a type-checking block (Conflicts with Beartype)
'TC002', # Move third-party import `rich.console.Console` into a type-checking block (Conflicts with Beartype)
'TC003', # Move standard library import `argparse` into a type-checking block (Conflicts with Beartype)
'TD001', # Invalid TODO tag: `FIXME`
'TD002', # Missing author in TODO; try: `# TODO(<author_name>): ...`
'TD003', # Missing issue link on the line following this TODO
'TRY003', # Avoid specifying long messages outside the exception class
]
preview = true
select = ['ALL']
unfixable = [
'ERA001', # Commented out code
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint.flake8-tidy-imports.banned-api]
'invoke.collection.Collection'.msg = 'Use calcipy.collection.Collection instead.'
'invoke.tasks.task'.msg = 'Use calcipy.cli.task instead.'
'typing.Callable'.msg = 'Use "from collections.abc" instead.'
'typing.Dict'.msg = 'Use "from __future__ import annotations"'
'typing.List'.msg = 'Use "from __future__ import annotations"'
'typing.Optional'.msg = 'Use "from __future__ import annotations"'
'typing.Protocol'.msg = 'Use "from beartype.typing" instead.'
[tool.ruff.lint.isort]
known-first-party = ['copier_template_tester']
[tool.ruff.lint.per-file-ignores]
'./copier_template_tester/../*.py' = [
'INP001', # File `/<>.py` is part of an implicit namespace package. Add an `__init__.py`.
]
'__init__.py' = [
'D104', # Missing docstring in public package
]
'scripts/*.py' = [
'INP001', # File `scripts/*.py` is part of an implicit namespace package. Add an `__init__.py`.
]
'scripts/check_imports.py' = [
'F401', # imported but unused; consider adding to __all__ or using a redundant alias
]
'tests/*.py' = [
'ANN001', # Missing type annotation for function argument
'ANN201', # Missing return type annotation for public function
'ANN202', # Missing return type annotation for private function `test_make_diffable`
'ARG001', # Unused function argument: `line`
'D100', # Missing docstring in public module
'D103', # Missing docstring in public function
'PLC2701', # Private name import `_<>` from external module
'PLR0917', # Too many positional arguments (6/5)
'PT004', # flake8-pytest-style: fixture does not return
'S101', # Use of `assert` detected
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tomlsort]
all = true
in_place = true
trailing_comma_inline_array = true
[[tool.ty.overrides]]
include = ["tests/data/**"]
[tool.ty.overrides.rules]
unresolved-import = "ignore"
[tool.uv]
default-groups = ["dev"]
required-version = ">=0.9.0"
[tool.uv.build-backend]
module-name = "copier_template_tester"
module-root = ""