-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
107 lines (89 loc) · 2.13 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
[tool.poetry]
name = "micropython-magic"
version = "0.10.2"
description = "MicroPython Magic commands for use with Jupyter notebooks and Jupyter Labs"
keywords = [
"MicroPython",
"stubs",
"Jupyter",
"notebooks",
"Jupyter Labs",
"vscode",
]
authors = ["Jos Verlinde <[email protected]>"]
license = "MIT"
readme = "readme.md"
packages = [{ include = "micropython_magic", from = "src" }]
include = []
exclude = ["**/tests/**", "**/*-test", "**/samples.py"]
[tool.poetry.dependencies]
python = "^3.8"
mpremote = "^1.22.0"
loguru = "^0.7.2"
ipympl = "^0.9.3"
[tool.poetry.extras]
widgets = ["bqplot", "numpy"]
[tool.poetry.group.plot]
optional = true
[tool.poetry.group.plot.dependencies]
matplotlib = "^3.7.2"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
ipykernel = "^6.22.0"
black = ">=23.3,<25.0"
testbook = "^0.4.2"
pytest = "^7.3.0"
bqplot = "^0.12.39"
numpy = "^1.24.2"
notebook = "^6.5.4"
pylance = "^0.4.3"
pytest-cov = "^4.1.0"
[tool.poetry.group.tools]
optional = true
[tool.poetry.group.tools.dependencies]
requests = "^2.31.0"
beautifulsoup4 = "^4.12.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry_bumpversion.file."src/micropython_magic/__init__.py"]
# configuration for Black.
# NOTE: you have to use single-quoted strings in TOML for regular expressions.
# It's the equivalent of r-strings in Python. Multiline strings are treated as
# verbose regular expressions by Black. Use [ ] to denote a significant space
# character.
[tool.black]
line-length = 100
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.mypy_cache
| \.venv
| \.vscode
| \.ipynb_checkpoints
| dist
)/
'''
[tool.pytest.ini_options]
addopts = "--cov=src/micropython_magic --cov-report html"
[tool.coverage.paths]
source = [
"src/",
]
[tool.coverage.run]
omit = [
"**/exp_magics.py",
]
relative_files = true
parallel = false
branch = true
[tool.coverage.html]
directory = "coverage"
[tool.coverage.xml]
output = "coverage/coverage.xml"
[tool.coverage.json]
output = "coverage/coverage.json"
[tool.coverage.lcov]
output = "coverage/coverage.lcov"