-
Notifications
You must be signed in to change notification settings - Fork 115
/
pyproject.toml
86 lines (73 loc) · 1.68 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
[tool.poetry]
name = "petshop"
version = "0.1.0"
description = "Pet Shop Service"
authors = ["John Rofrano <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.11"
Flask = "^3.0.3"
flask-sqlalchemy = "3.1.1"
psycopg = {extras = ["binary"], version = "^3.1.19"}
retry2 = "^0.9.5"
python-dotenv = "^1.0.1"
gunicorn = "^22.0.0"
[tool.poetry.group.dev.dependencies]
honcho = "^1.1.0"
pylint = "^3.2.5"
flake8 = "^7.1.0"
black = "^24.4.2"
pytest = "^8.3.1"
pytest-pspec = "^0.0.4"
pytest-cov = "^5.0.0"
factory-boy = "^3.3.0"
coverage = "^7.6.0"
httpie = "^3.2.3"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
########################################
# Tool configurations
########################################
[tool.flake8]
# ignore = ['E231', 'E241']
# Ignore module imports for routes
per-file-ignores = [
'*/__init__.py:F401 E402',
]
max-line-length = 127
count = true
[tool.black]
line-length = 127
[tool.pylint.'MESSAGES CONTROL']
disable = "no-member,protected-access,global-statement"
[tool.pylint.FORMAT]
max-line-length = 127
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--pspec --cov=service --cov-fail-under=95"
testpaths = ["tests"]
[tool.coverage.run]
source = ["service"]
omit = [
"venv/*",
".venv/*"
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"pragma: no branch",
"pass",
"subprocess.CalledProcessError",
"sys.exit",
"if __name__ == .__main__.:"
]
ignore_errors = true
[tool.coverage.xml]
output="./coverage.xml"
[tool.coverage.html]
title = "Test Coverage Report"
directory = "coverage_html_report"