generated from bakdata/template-python-poetry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
63 lines (57 loc) · 1.77 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
[tool.poetry]
name = "fastapi-jwks"
version = "0.3.0"
description = "A library designed to facilitate the integration of JSON Web Key Set (JWKS) with FastAPI applications"
license = "MIT"
authors = ["bakdata"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.7.1"
fastapi = ">=0.111.0, <1.0"
pyjwt = { extras = ["crypto"], version = "^2.8.0" }
cachetools = "^5.3.3"
types-cachetools = "^5.3.0.7"
cryptography = "^43.0.3"
httpx = "^0.27.0, <1.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.1"
ruff = "^0.9.4"
pyright = "^1.1.386"
pytest = "^8.3.3"
pytest-asyncio = "^0.25.3"
pytest-mock = "^3.14.0"
pytest-clarity = "^1.0.1"
pytest-cov = "^6.0.0"
[tool.ruff]
output-format = "grouped"
show-fixes = true
target-version = "py310"
[tool.ruff.lint]
# For a list of all possible rules visit https://docs.astral.sh/ruff/rules/
select = [
"F", # Pyflakes
"E", # pycodestyle Errors
"W", # pycodestyle Warnings
"C90", # mccabe
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"RUF", # Ruff-specific rules
]
ignore = [
# Rules in conflict with `ruff-format` -- START
"W191", # Checks for indentation that uses tabs. Spaces are preferred.
# "E111", # Checks for indentation with a non-multiple of 4 spaces, add when out of nursery
# "E114", # Checks for indentation of comments with a non-multiple of 4 spaces, add when out of nursery
# "E117", # Checks for over-indented code, add when out of nursery
"E501", # Line too long
# Rules in conflict with `ruff-format` -- END
"RUF012", # type class attrs with `ClassVar` -- Too strict/trigger-happy
]
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "--cov={fastapi_jwks} --cov-report term-missing"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"