-
Notifications
You must be signed in to change notification settings - Fork 87
/
pyproject.toml
86 lines (74 loc) · 1.88 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
[build-system]
requires = ["setuptools>=61.0.0", "wheel", "setuptools-git-versioning<2"]
build-backend = "setuptools.build_meta"
[project]
name = "bellows"
dynamic = ["version"]
description = "Library implementing EZSP"
urls = {repository = "https://github.com/zigpy/bellows"}
authors = [
{name = "Russell Cloran", email = "rcloran@gmail.com"}
]
readme = "README.md"
license = {text = "GPL-3.0"}
requires-python = ">=3.8"
dependencies = [
"click",
"click-log>=0.2.1",
"pure_pcapy3==1.0.1",
"voluptuous",
"zigpy>=0.70.0",
'async-timeout; python_version<"3.11"',
]
[tool.setuptools.packages.find]
exclude = ["tests", "tests.*"]
[project.optional-dependencies]
testing = [
"pytest>=7.1.2",
"pytest-asyncio>=0.19.0",
"pytest-timeout>=2.1.0",
"pytest-mock>=3.8.2",
"pytest-cov>=3.0.0",
]
[tool.setuptools-git-versioning]
enabled = true
[project.scripts]
bellows = "bellows.cli.main:main"
[tool.isort]
profile = "black"
# will group `import x` and `from x import` of the same module.
force_sort_within_sections = true
known_first_party = ["bellows", "tests"]
forced_separate = "tests"
combine_as_imports = true
[tool.mypy]
ignore_errors = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.flake8]
exclude = ".venv,.git,.tox,docs,venv,bin,lib,deps,build"
# To work with Black
max-line-length = 88
# W503: Line break occurred before a binary operator
# E203: Whitespace before ':'
# E501: line too long
# D202 No blank lines allowed after function docstring
ignore = "W503,E203,E501,D202"
per-file-ignores = """
tests/*:F811,F401,F403
bellows/types/named.py:E266
"""
[tool.coverage.run]
source = ["bellows"]
omit = [
"bellows/cli/*.py",
"bellows/typing.py",
]
[tool.coverage.report]
exclude_also = [
"raise AssertionError",
"raise NotImplementedError",
"if TYPE_CHECKING",
"if typing.TYPE_CHECKING",
"@(abc\\.)?abstractmethod",
]