-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (151 loc) · 3.25 KB
/
pyproject.toml
File metadata and controls
164 lines (151 loc) · 3.25 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "projspec"
dynamic = ["version"]
description = "Project specification"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
maintainers = [{ name = "Martin Durant", email = "mdurant@anaconda.com" }]
keywords = ["project"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"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",
]
dependencies = [
"fsspec >=2025.5.1",
"pyyaml",
"toml",
"fsspec",
"click",
"jinja2",
]
[project.optional-dependencies]
test = ["pytest", "pytest-cov", "django", "streamlit", "copier", "jinja2-time", "flask",
"maturin", "uv", "briefcase"]
qt = ["pyqt>5,<6", "pyqtwebengin>5,<6"]
[project.scripts]
projspec = "projspec.__main__:main"
projspec-qt = "projspec.qtapp.main:main"
[tool.poetry.extras]
po_test = ["pytest"]
[tool.poetry.group.deep.dependencies]
unknown = "*"
[tool.poetry]
# poetry can't resolve hatch's dynamic versioning but needs a value.
version="0.0.1"
[tool.hatch.version]
source = "vcs"
raw-options = {'version_scheme'='post-release'}
[tool.hatch.build.hooks.vcs]
version-file = "src/projspec/_version.py"
[tool.coverage.run]
omit = [
"src/projspec/qtapp/*.py"
]
[tool.ruff]
target-version = "py39"
exclude = [".tox", "build", "docs/source/conf.py", "projspec/_version"]
line-length = 80
[tool.ruff.lint]
select = [
# fix noqas in projspec/implementations/http.py
"ASYNC",
"B",
"B904",
"C4",
"G",
"E4",
"E7",
"E9",
"F",
"FURB",
"I",
"LOG",
"PERF",
"PLC",
"PLE",
"PLR1722",
"PLW1501",
"PLW1510",
"PLW3301",
"PIE800",
"PIE804",
"PIE807",
"PIE810",
# "PT", enable in later PR
"PYI",
"RUF006",
"RUF015",
"SIM",
"SLOT",
"SIM101",
"TCH",
"UP",
]
ignore = [
# Loop control variable `loop` not used within loop body
"B007",
# Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
"B019",
# Star-arg unpacking after a keyword argument is strongly discouraged
"B026",
# No explicit `stacklevel` keyword argument found
"B028",
# Assigning lambda expression
"E731",
# Ambiguous variable names
"E741",
# line break before binary operator
# uncomment when implemented in ruff
# "W503",
# whitespace before :
"E203",
# redefs
"F811",
# Fix these codes later
"G004",
"PERF203",
"UP007",
"UP011",
"UP015",
"UP018",
"SIM102",
"SIM105",
"SIM108",
"SIM114",
"SIM115",
"SIM117",
# https://github.com/astral-sh/ruff/issues/7871
"UP038",
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
]
[tool.uv.workspace]
members = [
"temp",
]
[dependency-groups]
dev = [
"pytest>=8.3.5",
]