-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (61 loc) · 1.93 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (61 loc) · 1.93 KB
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
[tool.poetry]
name = "fastapi-inertia"
version = "1.1.0"
description = "An implementation of the Inertia protocol for FastAPI."
authors = ["Hugo Mortreux <70602545+hxjo@users.noreply.github.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/hxjo/fastapi-inertia"
homepage = "https://github.com/hxjo/fastapi-inertia"
keywords = ["inertia", "inertiajs", "fastapi", "python"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Framework :: FastAPI",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [
{ include = "inertia"}
]
exclude = ["inertia/tests/**/*"]
[tool.poetry.dependencies]
python = ">=3.9"
fastapi = ">=0.111.0"
jinja2 = ">=3.1.4"
[tool.poetry.group.dev.dependencies]
uvicorn = "^0.29.0"
mypy = "^1.15.0"
ruff = "^0.11.2"
pytest = "^8.1.1"
httpx = "^0.27.0"
pytest-cov = "^5.0.0"
types-requests = "^2.31.0.20240406"
itsdangerous = "^2.2.0"
requests = "^2.31.0"
poethepoet = "^0.26.1"
beautifulsoup4 = "^4.12.3"
types-beautifulsoup4 = "^4.12.0.20240511"
pytest-asyncio = "^0.23.8"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
strict = true
check_untyped_defs = true
[tool.poe.tasks]
[tool.poe.tasks.test]
help = "Runs tests on the project with coverage. Fails if coverage is under 98%"
cmd = "pytest inertia/tests --cov inertia --cov-report term-missing --cov-fail-under=98"
[tool.poe.tasks.type_check]
help = "Runs type check on the project, using mypy"
cmd = "mypy inertia"
[tool.poe.tasks.format]
help = "Runs format (fix) on the project, using ruff"
cmd = "ruff format inertia"
[tool.poe.tasks.lint]
help = "Runs lint (fix) on the project, using ruff"
cmd= "ruff check inertia --fix"
[tool.poe.tasks.pc]
help = "Runs pre-commit hook: test, type_check, format (fix), lint (fix)"
sequence = ["test", "type_check", "format", "lint"]