-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
148 lines (120 loc) · 3.46 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "iso-week-date"
version = "1.4.1"
description = "Toolkit to work with str representing ISO Week date format"
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.8"
authors = [{name = "Francesco Bruzzesi"}]
dependencies = [
"typing-extensions>=4.4.0; python_version < '3.11'",
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.urls]
repository = "https://github.com/fbruzzesi/iso-week-date"
issue-tracker = "https://github.com/fbruzzesi/iso-week-date/issues"
documentation = "https://fbruzzesi.github.io/iso-week-date/"
[project.optional-dependencies]
pandas = [
"pandas>=1.0.0",
]
polars = [
"polars>=0.18.0",
]
pydantic = [
"pydantic>=2.4.0",
]
dev = [
"pre-commit==2.21.0",
"hatch"
]
lint = [
"ruff>=0.4.0"
]
docs = [
"mkdocs>=1.4.2",
"mkdocs-material>=9.2.0",
"mkdocstrings[python]>=0.20.0",
"mkdocs-autorefs",
]
test = [
"interrogate>=1.5.0",
"pytest==7.2.0",
"pytest-xdist==3.2.1",
"coverage==7.2.1",
]
types = [
"mypy",
"pandas-stubs",
]
all = ["iso-week-date[pandas,polars,pydantic]"]
all-dev = ["iso-week-date[pandas,polars,pydantic,dev,lint,test,docs,types]"]
[tool.hatch.build.targets.sdist]
only-include = ["iso_week_date"]
[tool.hatch.build.targets.wheel]
packages = ["iso_week_date"]
[tool.ruff]
line-length = 120
target-version = "py38"
fix = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D100", # Checks for undocumented public module definitions.
"D104", # Checks for undocumented public package definitions.
"D107", # Checks for public __init__ method definitions that are missing docstrings.
"E731", # Checks for lambda expressions which are assigned to a variable.
"EM101", # Checks for the use of string literals in exception constructors.
"ISC001", # Checks for implicitly concatenated strings on a single line.
"RET505", # Checks for else statements with a return statement in the preceding if block.
"TRY003", # Checks for long exception messages that are not defined in the exception class itself.
"DTZ",
"COM812",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN", "D", "S101", "PT006", "PT007", "FBT001", "SLF001"]
[tool.ruff.lint.isort]
force-single-line = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pylint]
max-args = 6
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.format]
docstring-code-format = true
[tool.interrogate]
ignore-nested-functions = true
ignore-module = true
ignore-init-method = true
ignore-private = true
ignore-magic = true
ignore-property-decorators = true
ignore-overloaded-functions = true
fail-under = 95
verbose = 2 # 0 (minimal output), 1 (-v), 2 (-vv)
[tool.mypy]
# ignore_missing_imports = true
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
[tool.coverage.run]
source = ["iso_week_date/"]