-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (66 loc) · 1.65 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 = "microbit-python-simulator"
version = "0.1.0"
description = "A microbit simulator built with Python"
authors = ["Lucas Berg <55436804+berglucas@users.noreply.github.com>"]
readme = "README.md"
keywords = ["Microbit", "Poetry", "Simulator"]
classifiers = ["Programming Language :: Python :: 3.11"]
packages = [
{include = "microbit", from = "src"},
{include = "microbit_client", from = "src"},
{include = "microbit_protocol", from = "src"},
{include = "microbit_server", from = "src"},
{include = "microbit_simulator", from = "src"},
{include = "radio", from = "src"},
]
[tool.poetry.dependencies]
python = "^3.9"
websockets = "^11.0.3"
pydantic = "^2.0.3"
typing-extensions = "^4.7.1"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
mypy = "^1.5.0"
coverage = "^7.2.7"
ruff = "^0.0.284"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
coverage = "coverage run -m unittest -v"
coverage-report = [
"coverage",
{ cmd = "coverage report" }
]
coverage-html = [
"coverage",
{ cmd = "coverage html" }
]
mypy = "mypy src"
black = "black src"
ruff = "ruff check --fix src"
lint = ["black", "ruff", "mypy"]
[tool.ruff]
select = [
"D", # pydocstyle
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"N", # pep8-naming
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"S", # flake8-bandit
"TCH", # flake8-type-checking
"Q", # flake8-quotes
"PL", # pylint
]
ignore = [
"D100",
"D104",
"D418",
"S101",
]
[tool.ruff.pydocstyle]
convention = "google"