-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
128 lines (104 loc) · 2.33 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Packaging
# ---------
[build-system]
requires = ["setuptools>=67.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
# This is the default but we include it to be explicit.
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
# Project
# -------
[project]
name = "timezone_tools"
version = "0.1.0"
description = "Tools for working with timezone-aware datetimes."
license.file = "LICENSE"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"python-dateutil",
"typing_extensions",
]
classifiers = [ # pragma: alphabetize
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
[project.urls]
Source = "https://github.com/kraken-tech/timezone-tools"
Changelog = "https://github.com/kraken-tech/timezone-tools/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [ # pragma: alphabetize
"covdefaults",
"coverage",
"pre-commit",
"pytest",
"time-machine",
"tox",
"tox-uv",
"uv",
]
# Ruff
# ----
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = [ # pragma: alphabetize
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"INP", # implicit namespace packages
"PERF", # Perflint
"PGH", # pygrep-hooks
"Q", # quotes
"RSE", # flake8-raise
"RUF",
"T10", # flake8-debugger
"UP", # pyupgrade
"W", # pycodestyle
]
[tool.ruff.lint.isort]
known-first-party = ["timezone_tools"]
# Mypy
# ----
[tool.mypy]
files = "."
exclude = "build/"
# Use strict defaults
enable_error_code = [
"truthy-bool",
]
strict = true
warn_unreachable = true
warn_no_return = true
# Pytest
# ------
[tool.pytest.ini_options]
# Ensure error warnings are converted into test errors.
filterwarnings = "error"
# Ensure that tests fail if an xfail test unexpectedly passes.
xfail_strict = true
# Coverage
# --------
[tool.coverage.run]
source = [
"timezone_tools",
"tests",
]
plugins = ["covdefaults"]
[tool.coverage.paths]
source = [
"src",
".tox/py*/**/site-packages",
]