-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
78 lines (70 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
76
77
78
[tool.poetry]
name = "http-utils"
version = "0.1.4"
description = ""
authors = ["Juntos Somos Mais <labs@juntossomosmais.com.br>"]
maintainers = ["Juntos Somos Mais <labs@juntossomosmais.com.br>"]
readme = "README.md"
homepage = "https://juntossomosmais.com.br"
repository = "https://github.com/juntossomosmais/mirny"
[tool.poetry.dependencies]
python = "^3.7"
requests = "^2"
urllib3 = "^1"
[tool.poetry.dev-dependencies]
pytest = "^6.2.3"
pytest-cov = "^2.11.1"
httpretty = "^1.0.5"
tox = "^3.23.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.tox]
legacy_tox_ini = """
[tox]
skipsdist = True
envlist = py39,py38,py37
[testenv]
download = true
passenv = *
commands =
python -m pip install --upgrade pip
pip install poetry
poetry install --no-root
pytest tests -vv --cov-append --doctest-modules --cov=. --junitxml=junit/test-results.xml --cov-report=xml --cov-report=term --cov-report=html
"""
[tool.isort]
force_single_line = true
ensure_newline_before_comments = true
line_length = 120
skip_glob = ["**/migrations/*.py"]
use_parentheses = true
multi_line_output = 3
include_trailing_comma = true
lines_between_types = 1
known_django = "django"
known_mirny = "mirny"
known_third_party = ["urllib3", "rest_framework", "request_id_django_log", "pytest"]
sections = ["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER", "MIRNY"]
[tool.black]
line-length = 120
target_version = ["py38"]
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations
| settings.py
)/
)
'''