-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
168 lines (155 loc) · 4.33 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[tool]
[tool.poetry]
name = "bonfo"
version = "0.1.0"
homepage = "https://github.com/destos/bonfo"
repository = "https://github.com/destos/bonfo"
documentation = "https://destos.github.io/bonfo"
description = "Multiwii flight controller configuration management"
authors = ["Patrick Forringer <patrick@forringer.com>"]
readme = "README.md"
license = "MIT"
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
packages = [
{ include = "bonfo" },
{ include = "tests", format = "sdist" },
]
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
pyserial = "^3.5"
pyserial-asyncio = "^0.6"
dataclass-wizard = "^0.22"
construct = "^2.10"
construct-typing = "^0"
arrow = "^1.2.2"
semver = "^2.13.0"
click = { version = "^8.0", extras = ["cli"] }
rich = { version = "^12.0", extras = ["cli"] }
rich-click = { version = "^1.2", extras = ["cli"] }
loca = { version = "^2.0", extras = ["cli"] }
black = { version = "^22.0", optional = true }
isort = { version = "^5", optional = true }
flake8 = { version = "^3", optional = true }
flake8-docstrings = { version = "^1", optional = true }
mypy = { version = ">=0.940,<0.951", optional = true }
pytest = { version = "^7", optional = true }
pytest-asyncio = { version = "^0.18.3", optional = true }
pytest-cov = { version = "^3", optional = true }
pytest-watcher = { version = "^0", optional = true }
pytest-mock = { version = "^3", optional = true }
types-mock = { version = "^4", optional = true }
# types-docutils = { version }
tox = { version = "^3", optional = true }
virtualenv = { version = "^20", optional = true }
pip = { version = "^20", optional = true }
mkdocs = { version = "^1", optional = true }
mkdocstrings = { version = "^0", optional = true }
mkdocs-click = { version = "^0", optional = true }
mkdocs-git-revision-date-plugin = { version = "^0", optional = true }
mkdocs-include-markdown-plugin = { version = "^3", optional = true }
mkdocs-material = { version = "^8", optional = true }
mkdocs-material-extensions = { version = "^1", optional = true }
twine = { version = "^4", optional = true }
mkdocs-autorefs = { version = "^0", optional = true }
pre-commit = { version = "^2", optional = true }
toml = { version = "^0", optional = true }
bump2version = { version = "^1", optional = true }
autoflake8 = { version = "^0", optional = true }
textual = "^0.1.18"
[tool.poetry.extras]
test = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-mock",
"types-mock",
]
dev = [
"tox",
"pre-commit",
"virtualenv",
"pip",
"twine",
"toml",
"black",
"isort",
"mypy",
"bump2version",
"autoflake8",
"pytest-watcher",
"flake8",
"flake8-docstrings",
]
doc = [
"mkdocs",
"mkdocs-click",
"mkdocs-material",
"mkdocs-material-extension",
"mkdocs-autorefs",
"mkdocs-include-markdown-plugin",
"mkdocs-git-revision-date-plugin",
"mkdocstrings",
]
[tool.poetry.scripts]
bonfo = 'bonfo.cli:main'
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = ["py36", "py37", "py38"]
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
skip_gitignore = true
# you can skip files as below
#skip_glob = docs/conf.py
[tool.autoflake8]
in-place = true
# remove-unused-variables = true
remove-all-unused-imports = true
ignore-init-module-imports = true
recursive = true
verbose = true
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
asyncio_mode = "auto"
[tool.mypy]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "bonfo.cli"
ignore_errors = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"