-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
143 lines (124 loc) · 3.13 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
[project]
name = "jwskate"
description = "A Pythonic implementation of the JOSE / JSON Web Crypto related RFCs (JWS, JWK, JWA, JWT, JWE)"
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "Guillaume Pujol", email = "[email protected]" }
]
dynamic = ["version"]
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Security',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
]
dependencies = [
"cryptography>=3.4",
"typing-extensions>=4.3",
"binapy>=0.8",
]
[project.urls]
homepage = "https://github.com/guillp/jwskate"
documentation = "https://guillp.github.io/jwskate/"
pypi = "https://pypi.org/project/jwskate/"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "jwskate/_version.py"
[tool.hatch.version.raw-options]
version_scheme = "no-guess-dev"
[tool.hatch.build.targets.wheel]
packages = ["jwskate"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/docs",
"/tests",
".gitignore",
".editorconfig",
".pre-commit-config.yaml",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"coverage[toml]>=7.6.1",
"jwcrypto>=1.5.6",
"pre-commit>=4.0.0",
"pytest-cov>=5.0.0",
"pytest>=8.3.3",
"pytest-freezer>=0.4.8",
"pytest-mypy>=0.10.3",
"mkdocs>=1.6.1",
"mkdocstrings[python]>=0.26.1",
"mkdocs-autorefs>=1.2.0",
"mkdocs-include-markdown-plugin>=6.2.2",
"mkdocs-material>=9.5.45",
"mkdocs-material-extensions>=1.3.1",
"black>=24.8.0",
]
[tool.mypy]
strict = true
pretty = true
show_error_context = true
show_column_numbers = true
show_error_codes = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
[tool.docformatter]
recursive = true
wrap-summaries = 120
wrap-descriptions = 120
blank = true
[tool.ruff]
target-version = "py39"
line-length = 120
exclude = [
"tests"
]
[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
"A005", # Module name shadows a Python standard-library module
"ANN401",
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"N818", # Exception names should be named with an Error suffix
"PLR0912", # Too many branches
"D107", # Missing docstring in `__init__`
"ISC001", # Implicitly concatenated string literals on one line
]
[tool.ruff.lint.pydocstyle]
convention = "google"
ignore-decorators = ['override']
[tool.ruff.lint.pylint]
max-args = 10
[tool.coverage.run]
omit = [
"tests/"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"def main",
"...",
"assert False",
"pytest.skip",
"pass",
]