-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (129 loc) · 3.62 KB
/
pyproject.toml
File metadata and controls
143 lines (129 loc) · 3.62 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "dateutils-python"
version = "0.6.0"
description = "A comprehensive Python library for date and time manipulation, parsing, formatting, and calculations. Provides intuitive interfaces for common date operations and timezone handling."
readme = "README.md"
authors = [
]
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
"Programming Language :: Python :: Implementation :: CPython",
]
keywords = ["date", "time", "datetime", "utilities", "timezone", "parsing", "formatting"]
requires-python = ">=3.10"
dependencies = [
# No external dependencies beyond standard library
]
[project.urls]
Homepage = "https://github.com/chetmancini/dateutils-python"
"Bug Tracker" = "https://github.com/chetmancini/dateutils-python/issues"
Documentation = "https://github.com/chetmancini/dateutils-python#readme"
"Source Code" = "https://github.com/chetmancini/dateutils-python"
[dependency-groups]
dev = [
"freezegun>=1.5.5",
"pytest>=9.0.2",
"ruff>=0.15.4",
"pytest-cov>=7.0.0",
"ty>=0.0.19",
"build>=1.4.0",
"pre-commit>=4.5.1",
"bump2version>=1.0.1",
"twine>=6.2.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
addopts = "--cov=dateutils --cov-report=term-missing"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::UserWarning",
]
[tool.coverage.run]
source = ["dateutils"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
"PL", # pylint
"RUF", # ruff-specific rules
]
extend-select = ["S", "PT", "RET", "PERF"]
ignore = [
"E501", # line length violations
"PLR0913", # too many arguments
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101",
"PLR2004",
"PLC0415", # Allow imports inside test functions for isolation
"RUF043", # Allow regex metacharacters in pytest.raises match patterns
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.setuptools]
packages = ["dateutils"]
package-data = {"dateutils" = ["py.typed"]}
[tool.ty.environment]
python-version = "3.10"
[tool.ty.rules]
# Strict type checking (equivalent to mypy strict settings)
possibly-unresolved-reference = "error"
invalid-argument-type = "error"
missing-argument = "error"
unsupported-operator = "error"
division-by-zero = "error"
unused-ignore-comment = "warn"
redundant-cast = "warn"
[tool.ty.src]
include = ["dateutils", "tests"]
exclude = [
".git",
".hg",
".ty_cache",
".tox",
".venv",
"_build",
"buck-out",
"build",
"dist",
]