-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
112 lines (95 loc) · 2.71 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
105
106
107
108
109
110
111
112
[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 = "[email protected]" },
]
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.ruff]
extend = ".ruff_defaults.toml"
target-version = "py39"
line-length = 100
[tool.ruff.format]
preview = true
[tool.ruff.lint]
extend-fixable = ["RUF100", "I001"]
ignore = [
"S101", # Allow usage of asserts
"A001", # Allow shadowing bultins
"A003", # Allow shadowing bultins on classes
"EM101", # Allow raw strings in exceptions
"EM102", # Allow f-strings in exceptions
"EM102", # Allow f-strings in exceptions
"TRY003", # Allow "long" messages in exceptions
]
[tool.ruff.lint.per-file-ignores]
"docs/**/*" = [
"INP001", # Ignore possible static credentials
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.isort]
force-single-line = true
lines-after-imports = 2
order-by-type = false
[tool.mypy]
disallow_untyped_defs = true
follow_imports = "normal"
ignore_missing_imports = true
pretty = true
show_column_numbers = true
show_error_codes = true
warn_no_return = false
warn_unused_ignores = true
plugins = [
"pydantic.mypy",
]
[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"