-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
99 lines (91 loc) · 2.6 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
# SPDX-FileCopyrightText: Copyright © 2023 Jamie Nguyen <[email protected]>
# SPDX-License-Identifier: MIT
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "httpdate"
description = "Parse and format HTTP dates, such as Last-Modified and If-Modified-Since headers."
readme = "README.md"
requires-python = ">=3.7"
license = "MIT"
keywords = ["rfc9110", "lastmodified", "last-modified", "if-modified-since"]
authors = [
{ name = "Jamie Nguyen", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"leapseconds >= 2023.4.0",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/jamielinux/httpdate"
Issues = "https://github.com/jamielinux/httpdate/issues"
Source = "https://github.com/jamielinux/httpdate"
# pytest & coverage
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--strict-markers",
"--strict-config",
"-ra",
]
[tool.coverage.run]
branch = true
command_line = "-m pytest"
omit = [
"tests/*"
]
source = ["."]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.coverage.paths]
source = [
".",
"/Users/runner/work/httpdate/httpdate",
'D:\a\httpdate\httpdate',
]
# scriv
[tool.scriv]
fragment_directory = ".changelog.d"
format = "md"
version = "literal: src/httpdate/__about__.py: __version__"
# checkers, formatters & linters
[tool.ruff]
target-version = "py37"
line-length = 88
pydocstyle.convention = "google"
select = [
"A", "ARG", "B", "BLE", "C", "C4", "C90", "COM", "D", "DTZ", "E", "EXE", "F", "FBT",
"G", "I", "INP", "ISC", "N", "PIE", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "S",
"SIM", "SLF", "T10", "T20", "TCH", "TRY", "W", "YTT"
]
ignore = [ "COM812", "TRY003" ]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"tests/conftest.py" = ["PT004"]
"tests/*" = ["D", "E501", "FBT", "INP001", "RUF001", "RUF002", "RUF003", "S", "SIM117"]
[tool.ruff.mccabe]
max-complexity = 10
[tool.black]
line-length = 88
target_version = ["py37", "py38", "py39", "py310", "py311"]
[tool.pyright]
include = ["."]