-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
77 lines (65 loc) · 1.84 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
[project]
name = "stringenum"
version = "0.5.0"
description = "A small, dependency-free library offering additional enum.StrEnum subclasses and a backport for older Python versions."
authors = [{ name = "Ravencentric", email = "me@ravencentric.cc" }]
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
keywords = ["enum", "strenum"]
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = []
[project.urls]
Repository = "https://github.com/Ravencentric/stringenum"
[dependency-groups]
dev = [
"coverage[toml]>=7.6.8",
"mypy>=1.13.0",
"nox>=2024.10.9",
"pytest>=8.3.3",
"ruff>=0.8.0",
"tomli>=2.1.0",
"typing-extensions>=4.12.2",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = ["I", "RUF", "UP", "N", "D4"]
fixable = ["ALL"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["D"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.mypy]
strict = true
pretty = true
files = ["src/**/*.py", "tests/**/*.py", "noxfile.py"]
enable_error_code = ["ignore-without-code"]
[tool.pytest.ini_options]
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
filterwarnings = ["error"]
log_cli_level = "info"
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
source_pkgs = ["stringenum"]
[tool.coverage.paths]
source = ["src/stringenum/", ".nox/*/Lib/site-packages/stringenum/"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:", # Only used for type-hints
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"