forked from prefeitura-rio/emd-desafio-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
54 lines (44 loc) · 1.23 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
[tool.poetry]
name = "emd-desafio-devops"
version = "0.1.0"
description = ""
authors = ["Escritório de Dados <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
flask = "^2.3.2"
gunicorn = "^21.2.0"
pyfiglet = "^0.8.post1"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
isort = "^5.12.0"
taskipy = "^1.11.0"
pre-commit = "^3.3.3"
python-dotenv = "^1.0.0"
flake8 = "^6.0.0"
semgrep = "^1.33.2"
[tool.poetry.group.doc.dependencies]
mkdocs-material = "^9.1.19"
mkdocstrings = "^0.22.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
pythonpath = "."
addopts = "--doctest-modules"
[tool.black]
line-length = 100
target-version = ['py310']
include = '\.pyi?$'
[tool.isort]
profile = "black"
[tool.taskipy.tasks]
up = "docker compose up -d --build --force-recreate"
down = "docker compose down --rmi local"
lint = "semgrep scan --error --verbose --config auto --exclude-rule python.flask.security.audit.app-run-param-config.avoid_app_run_with_bad_host && black . && isort . && flake8 ."
docs = "mkdocs serve"
docs_deploy = "mkdocs gh-deploy"
test = "pytest -s -x --cov=src"
cov = "coverage html"