-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
105 lines (95 loc) · 2.22 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "wheel"] # PEP 517
[project]
authors = [
{name = "Szymon Kozioł", email = "[email protected]"},
{name = "Inatsi Yermakovich"},
{name = "Karolina Klimek"},
{name = "Mateusz Lewandowski"},
{name = "Patryk Sokoliński"},
{name = "Błazej Czaicki"},
]
dependencies = [
"fastapi",
"fastapi_utils@git+https://github.com/Ignatella/fastapi-utils",
"uvicorn",
"pydantic",
"pydantic[email]",
"sqlalchemy[asyncio] >= 2.0.13",
"SQLAlchemy >= 2.0.13",
"alembic",
"python-dotenv",
"psycopg",
"python-multipart",
"fastapi-oidc@git+https://github.com/Critteros/fastapi-oidc@feat_allow_passing_jwt_decode_options",
"python-barcode",
"beautifulsoup4", # Scraping dependencies
"pyppeteer",
"pyppeteer_stealth",
"httpx",
"python-magic"
]
name = "barcode_api"
readme = "README.md"
version = "0.0.2"
[project.optional-dependencies]
dev = [
"ruff",
"black",
"mypy",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-env",
"pip-tools",
"sqlalchemy-stubs",
"types-beautifulsoup4",
"pytest-asyncio",
"mkdocs-material",
"mkdocstrings[python]",
"types-Pillow",
"Pillow",
"numpy",
"types-python-jose",
"jose",
"Faker"
]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.black]
line-length = 120
target-version = ["py310"]
[tool.setuptools.packages.find]
include = ["barcode_api*"]
[tool.mypy]
exclude = ["build", "dist", "venv", "env", "node_modP>ules"]
[tool.pytest.ini_options]
env = [
"POSTGRES_SERVER=127.0.0.1:5432",
"POSTGRES_DB=test",
"POSTGRES_USER=postgres",
"POSTGRES_PASSWORD=postgres",
"OIDC_CLIENT_ID=barcode-api",
"OIDC_BASE_AUTHORIZATION_SERVER_URI=http://example.com",
"OIDC_ISSUER=http://example.com/identity",
"OIDC_SIGNATURE_CACHE_TTL=3600",
]
[tool.coverage]
[tool.coverage.run]
omit = [
# omit anything in a .local directory anywhere
'*/.local/*',
'__init__.py',
'tests/*',
'*/tests/*',
# omit anything in a .venv directory anywhere
'.venv/*',
# Ignore alembic migrations
'alembic/*',
]
branch = true
[tool.coverage.report]
skip_empty = true