forked from mdomke/python-ulid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
90 lines (75 loc) · 2.25 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
[build-system]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[project]
name = "python-ulid"
description = "Universally unique lexicographically sortable identifier"
dynamic = ["version", "readme"]
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "Martin Domke", email = "mail@martindomke.net" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
]
[project.urls]
Homepage = "https://github.com/mdomke/python-ulid"
Documentation = "https://python-ulid.readthedocs.io"
Changelog = "https://python-ulid.readthedocs.io/en/latest/changelog.html"
Issues = "https://github.com/mdomke/python-ulid/issues"
CI = "https://github.com/mdomke/python-ulid/actions"
Repository = "https://github.com/mdomke/python-ulid"
[project.optional-dependencies]
pydantic = [
"pydantic>=2.0"
]
[project.scripts]
ulid = "ulid.__main__:entrypoint"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = [
"ulid",
]
[tool.black]
line-length = 100
[tool.ruff]
target-version = "py39"
line-length = 100
[tool.ruff.lint]
select = ["A", "B", "C", "C4", "E", "F", "I", "N", "PT", "Q", "RUF", "S", "SIM", "T10", "UP", "W", "YTT"]
fixable = ["RUF100", "I001"]
ignore = [
"S101", # Allow usage of asserts
"A001", # Allow shadowing bultins
"A003", # Allow shadowing bultins on classes
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.isort]
force-single-line = true
lines-after-imports = 2
order-by-type = false
[tool.coverage.run]
branch = true
parallel = true
source = ["ulid"]
[tool.doc8]
max-line-length = 100
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/x-rst"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.rst"
start-after = ".. teaser-begin"