-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (92 loc) · 2.05 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "CalypSSO"
dynamic = ["version"]
description = "A small and static Next.js frontend for Hyperion"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [{ name = "AEECL ECLAIR" }]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = ["starlette>=0.37"]
[project.urls]
Source = "https://github.com/aeecleclair/CalypSSO"
[tool.hatch.version]
path = "python/calypsso/__about__.py"
[tool.hatch.build]
packages = ["python/calypsso"]
[tool.hatch.build.force-include]
# We want to mount the out directory inside the package folder
"out" = "python/calypsso/public"
[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.default]
installer = "uv"
[tool.ruff]
# By default ruff also respect gitignore files
# Same as Black.
line-length = 88
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"I",
"T201",
"C90",
"DTZ",
"UP",
"ASYNC",
"S",
"B",
"A",
"COM",
"C4",
"ISC",
"ICN",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"SLF",
"SLOT",
"SIM",
"TCH",
"PTH",
"RUF",
]
ignore = [
"E501"
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.mypy]
python_version = "3.12"
strict = true
exclude = '''(?x)(
dist/*$
)''' # TOML's single-quoted strings do not require escaping backslashes