Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (59 loc) · 1.35 KB
/
Copy pathpyproject.toml
File metadata and controls
68 lines (59 loc) · 1.35 KB
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
[project]
name = "tsmppt60-driver"
version = "1.0.2"
description = "Python module to get status of your solar charge controller TS-MPPT-60."
authors = [
{ name = "Takashi Ando", email = "dodo5522@gmail.com" },
]
urls = { homepage = "https://github.com/dodo5522/tsmppt60_driver" }
license = "GPL-2.0-only"
readme = "README.md"
requires-python = ">=3.11,<3.15"
dependencies = []
[project.scripts]
tsmppt60cli = "tsmppt60_driver.cli:main"
[dependency-groups]
dev = [
"pre-commit~=3.8",
"pytest~=9.1",
"pytest-mock~=3.12",
"pytest-cov~=7.1",
"ruff~=0.16.3",
"time-machine~=3.6.0",
]
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
include = ["tsmppt60_driver*"]
[tool.poetry]
requires-poetry = "~=2.4"
[tool.ruff]
target-version = "py311"
line-length = 120
extend-exclude = [
"firebase",
"infra",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"D203",
"D105",
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.isort]
case-sensitive = true
lines-after-imports = 2