-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (126 loc) · 4.26 KB
/
pyproject.toml
File metadata and controls
150 lines (126 loc) · 4.26 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
# ---- Project Info and Dependencies ----
[project.urls]
Repository = "https://github.com/jlevy/repren"
[project]
name = "repren"
description = "Powerful CLI string replacement and file renaming for agents and humans"
authors = [
{ name = "Joshua Levy", email = "[email protected]" },
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
dynamic = ["version"]
# https://pypi.org/classifiers/
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Operating System :: Unix",
"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",
"Topic :: Utilities",
"Topic :: Text Processing",
"Topic :: Software Development",
]
# ---- Main dependencies ----
dependencies = []
# ---- Dev dependencies ----
[dependency-groups]
dev = [
"pytest>=9.0.2",
"pytest-sugar>=1.1.1",
"ruff>=0.14.11",
"codespell>=2.4.1",
"rich>=14.2.0",
"basedpyright>=1.37.1",
"funlog>=0.2.1",
"jinja2>=3.1.4",
"pytest-cov>=7.0.0",
]
[project.scripts]
repren = "repren:main"
# ---- Build system ----
# Dynamic versioning from:
# https://github.com/ninoseki/uv-dynamic-versioning/
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
bump = true
pattern = "default-unprefixed"
[tool.hatch.build.targets.wheel]
# The source location for the package.
packages = ["repren"]
# ---- Settings ----
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", # https://docs.astral.sh/ruff/rules/#error-e
"F", # https://docs.astral.sh/ruff/rules/#pyflakes-f
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"I", # https://docs.astral.sh/ruff/rules/#isort-i
]
ignore = [
"E501", # https://docs.astral.sh/ruff/rules/line-too-long/
"E731", # https://docs.astral.sh/ruff/rules/lambda-assignment/
# Disabled for formatter compatibility:
"W191", # https://docs.astral.sh/ruff/rules/tab-indentation/
"E111", # https://docs.astral.sh/ruff/rules/indentation-with-invalid-multiple/
"E114", # https://docs.astral.sh/ruff/rules/indentation-with-invalid-multiple-comment/
"E117", # https://docs.astral.sh/ruff/rules/over-indented/
"D206", # https://docs.astral.sh/ruff/rules/docstring-tab-indentation/
"D300", # https://docs.astral.sh/ruff/rules/triple-single-quotes/
"Q000", # https://docs.astral.sh/ruff/rules/bad-quotes-inline-string/
"Q001", # https://docs.astral.sh/ruff/rules/bad-quotes-multiline-string/
"Q002", # https://docs.astral.sh/ruff/rules/bad-quotes-docstring/
"Q003", # https://docs.astral.sh/ruff/rules/avoidable-escaped-quote/
"COM812", # https://docs.astral.sh/ruff/rules/missing-trailing-comma/
"COM819", # https://docs.astral.sh/ruff/rules/prohibited-trailing-comma/
"ISC002", # https://docs.astral.sh/ruff/rules/multi-line-implicit-string-concatenation/
]
[tool.basedpyright]
include = ["repren", "tests", "devtools"]
# Standard settings for a well-typed codebase:
reportMissingTypeStubs = false
reportUnusedCallResult = false
reportAny = false
reportExplicitAny = false
reportImplicitStringConcatenation = false
reportPrivateUsage = false
reportImplicitOverride = false
reportUnreachable = false
# These require more type annotations to enable:
reportUnknownParameterType = false
reportMissingParameterType = false
reportUnknownArgumentType = false
reportUnknownMemberType = false
reportUnknownVariableType = false
reportUnknownLambdaType = false
[tool.codespell]
# ignore-words-list = "foo,bar"
# skip = "foo.py,bar.py"
[tool.pytest.ini_options]
python_files = ["*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
testpaths = [
"repren",
"tests",
]
norecursedirs = []
filterwarnings = []