-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
74 lines (62 loc) · 1.47 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
[tool.poetry]
name = "rpi-mqtt"
version = "0.1.0"
description = ""
authors = ["Ismar Slomic <ismar@slomic.no>"]
readme = "README.md"
packages = [{ include = "mqtt", from = "src" }]
[tool.poetry.dependencies]
python = "^3.12"
psutil = "^6.1.1"
pyyaml = "^6.0.1"
pydantic = "^2.10.5"
paho-mqtt = "^2.1.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.4"
pylint = "^3.3.3"
isort = "^5.13.2"
pytest-cov = "^6.0.0"
pre-commit = "^4.0.1"
jsonschema-markdown = "^0.3.18"
black = "^24.10.0"
[tool.poetry.scripts]
pub-sub = "mqtt.pub_sub:main"
generate_docs = "docs:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
log_level = "debug"
addopts = [
"--import-mode=importlib",
]
[tool.coverage.run]
source = ["src"]
[tool.coverage.report]
skip_empty = true
show_missing = true
exclude_lines = [
"if __name__ == .__main__.:"
]
[tool.black]
# https://github.com/psf/black
line-length = 120
target_version = ['py310']
[tool.isort]
# https://github.com/timothycrosley/isort
# https://github.com/timothycrosley/isort/wiki/isort-Settings
line_length = 120
indent = ' '
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
[tool.pylint]
good-names = "a,b,c,d,e,f,g,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w,x,y,z,_,ch,ci,db,ex,it,lt,md,vf,ok"
max-line-length = 120
no-docstring-rgx = "^_.*|^test_.*|^.*_test"
# max class attributes
max-attributes=20
disable = [
"W0511", # (fixme)
"R1711", # (useless-return)
]