-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
84 lines (74 loc) · 1.75 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
[project]
name = "resulty"
version = "0.1.1"
description = "A rust like Result type for Python"
authors = [{ name = "Rémi Kalbe", email = "[email protected]" }]
requires-python = ">=3.12,<3.13"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Typing :: Typed",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
#
# Hatch configuration
#
[tool.hatch.envs.publish]
detached = true
dependencies = ["keyring>=25.2.1, <25.3", "keyrings.alt>=5.0.1, <5.1"]
[tool.hatch.envs.hatch-test]
extra-args = ["--tb=long", "-vv"]
extra-dependencies = ["pytest-asyncio>=0.23.6, <0.24"]
[tool.hatch.envs.hatch-static-analysis]
dependencies = ["ruff>=0.4.4, <0.5"]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.12"]
[tool.hatch.envs.hatch-test.scripts]
run = "pytest{env:HATCH_TEST_ARGS:} {args}"
run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
cov-combine = "coverage combine && coverage html && coverage xml"
cov-report = "coverage report"
#
# Ruff configuration
#
[tool.ruff]
line-length = 100
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pixi",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 30