82 lines
1.5 KiB
TOML
82 lines
1.5 KiB
TOML
[tool.poetry]
|
|
name = "portswatch"
|
|
version = "0.1.0"
|
|
description = "A port monitoring tool to detect all opened port and wich port can be openned"
|
|
authors = ["Dryusdan <contact@dryusdan.fr>"]
|
|
license = "GPL-3"
|
|
readme = "README.md"
|
|
packages = [{include = "portswatch"}]
|
|
|
|
[tool.poetry.scripts]
|
|
portwatch = "portswatch.app:app"
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.11"
|
|
fastapi = "^0.109.0"
|
|
uvicorn = {extras = ["standard"], version = "^0.27.0"}
|
|
pydantic-settings = "^2.1.0"
|
|
rich = "^13.7.0"
|
|
sqlalchemy = "^2.0.25"
|
|
alembic = "^1.13.1"
|
|
python3-nmap = "^1.6.0"
|
|
typer = {extras = ["all"], version = "^0.9.0"}
|
|
requests = "^2.31.0"
|
|
pendulum = "^3.0.0"
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
ruff = "^0.1.14"
|
|
isort = "^5.13.2"
|
|
|
|
|
|
[tool.poetry.group.test.dependencies]
|
|
pytest = "^7.4.4"
|
|
pytest-mock = "^3.12.0"
|
|
pytest-cov = "^4.1.0"
|
|
coverage = {extras = ["toml"], version = "^7.4.0"}
|
|
|
|
|
|
[tool.poetry.group.cli.dependencies]
|
|
typer = {extras = ["all"], version = "^0.9.0"}
|
|
pydantic-settings = "^2.1.0"
|
|
requests = "^2.31.0"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.ruff]
|
|
exclude = [
|
|
"migrations",
|
|
]
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
# pycodestyle
|
|
"E",
|
|
# Pyflakes
|
|
"F",
|
|
# pyupgrade
|
|
"UP",
|
|
# flake8-bugbear
|
|
"B",
|
|
# flake8-simplify
|
|
"SIM",
|
|
# isort
|
|
"I",
|
|
]
|
|
|
|
[tool.ruff.format]
|
|
docstring-code-format = true
|
|
|
|
[tool.coverage.run]
|
|
omit = [
|
|
"tests/*",
|
|
]
|
|
[tool.coverage.report]
|
|
fail_under = 90
|
|
|
|
[tool.isort]
|
|
skip_glob = ["migrations/*"]
|
|
skip = [".gitignore", ".dockerignore", ".env", "env.py"]
|