-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (66 loc) · 1.66 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
[tool.poetry]
name = "data_analyzer"
version = "0.1.0"
description = ""
authors = ["Hannes Brandstätter-Müller <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
fastapi = "^0.75.0"
uvicorn = "^0.17.6"
requests = "^2.27.1"
aiofiles = "^22.1.0"
matplotlib = "^3.6.0"
python-multipart = "^0.0.5"
pandas = "^1.5.0"
Jinja2 = "^3.1.2"
SQLAlchemy = "^1.4.41"
psycopg2 = "^2.9.4"
python-dotenv = "^0.21.0"
[tool.poetry.dev-dependencies]
black = "^22.3.0"
isort = "^5.10.1"
flake8 = "^4.0.1"
flake8-comprehensions = "^3.8.0"
flake8-functions-names = "^0.3.0"
flake8-simplify = "^0.19.2"
pep8-naming = "^0.12.1"
flake8-use-fstring = "^1.3"
mypy = "^0.942"
pytest = "^7.1.1"
pylint = "^2.13.3"
types-aiofiles = "^22.1.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py39']
include = '\.pyi?$'
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
^/foo.py # exclude a file named foo.py in the root of the project (in addition to the defaults)
'''
[tool.isort]
profile = "black"
line_length = 120
[tool.mypy]
files = ["data_analyzer", "tests"]
python_version = "3.9"
warn_unreachable = true
warn_return_any = true
disallow_untyped_defs = true
show_error_codes = true
ignore_missing_imports = true
plugins = ["pydantic.mypy"]
exclude = [".git/", ".venv/", "__pycache__"]
[[tool.mypy.overrides]]
module = "tests.*"
strict_optional = false
[[tool.mypy.overrides]]
module = "some.autogenerated.files.*"
ignore_errors = true
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
addopts = "-Wall -Werror"