-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
64 lines (56 loc) · 1.84 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
[tool.poetry]
name = "pyfail2banapi"
version = "0.1.0"
description = "The Python Fail2Ban API is a robust and efficient FastAPI application designed to interact with Fail2Ban statistics"
authors = ["Denis Rozhnovskiy <pytelemonbot@mail.ru>"]
license = "MIT"
readme = "README.md"
keywords = ["fail2ban", "api", "fastapi", "security", "pydantic"]
homepage = "https://github.com/orenlab/pyfail2banapi"
repository = "https://github.com/orenlab/pyfail2banapi"
documentation = "https://your-project-docs.com"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Framework :: FastAPI",
"Topic :: Security",
"Topic :: System :: Networking :: Firewalls"
]
[tool.poetry.dependencies]
python = "^3.10"
fastapi = "^0.114.0"
pydantic = "^2.9.0"
# Add other core dependencies for the API here.
uvicorn = "^0.30.6"
[tool.poetry.dev-dependencies]
# Add development and testing dependencies.
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
mypy = "^1.0.0"
black = "^24.8.0"
isort = "^5.0.0"
pylint = "^3.2.7"
httpx = "^0.27.2" # Useful for testing FastAPI with async calls.
pytest-asyncio = "^0.24.0"
mock = "^5.0.0"
types-setuptools = "^74.1.0.20240907"
[tool.poetry.scripts]
# Add any CLI commands here if your package has any.
fail2ban-api = "fail2ban_api.main:app"
[build-system]
requires = ["poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
# Pytest configuration settings to improve test runs.
minversion = "7.0"
addopts = "--cov=fail2ban_client --cov=app --cov-report=term --cov-report=html"
testpaths = ["tests"]
[tool.black]
line-length = 88
target-version = ['py312']
[tool.isort]
profile = "black"
[tool.pylint]
disable = ["C0114", "C0115", "C0116"] # Disable missing docstring checks in tests.