forked from vangorra/python_withings_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
90 lines (77 loc) · 2.04 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
87
88
89
90
[tool.poetry]
name = "withings_api"
version = "2.1.9"
description = "Library for the Withings API"
license = "MIT"
authors = [
"Robbie Van Gorkom <robbie.van.gorkom@protonmail.com>"
]
readme = 'README.md'
repository = "https://github.com/vangorra/python_withings_api"
homepage = "https://github.com/vangorra/python_withings_api"
keywords = ['withings', 'api']
[tool.poetry.dependencies]
python = "^3.6 || ^3.7"
arrow = ">=0.15.2"
requests-oauth = ">=0.4.1"
requests-oauthlib = ">=1.2"
typing-extensions = ">=3.7.4.2"
[tool.poetry.dev-dependencies]
bandit = "==1.6.2"
black = "==19.10b0"
codespell = "==1.16.0"
coverage = "==5.0.4"
flake8 = "==3.7.8"
isort = "==4.3.21"
mypy = "==0.740"
pylint = "==2.4.3"
pytest = "==5.2.1"
pytest-cov = "==2.8.1"
responses = "==0.10.6"
toml = "==0.10.0" # Needed by isort and others.
wheel = "==0.33.6" # Needed for successful compile of other modules.
[tool.black]
target-version = ["py36", "py37", "py38"]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| build
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.isort]
# https://github.com/timothycrosley/isort
# https://github.com/timothycrosley/isort/wiki/isort-Settings
# splits long import on multiple lines indented by 4 spaces
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
indent = " "
# by default isort don't check module indexes
not_skip = "__init__.py"
# will group `import x` and `from x import` of the same module.
force_sort_within_sections = true
sections = "FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
default_section = "THIRDPARTY"
known_first_party = "homeassistant,tests"
forced_separate = "tests"
combine_as_imports = true
[tool.coverage.run]
branch = true
[tool.coverage.report]
fail_under = 97.0