-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (78 loc) · 2.09 KB
/
pyproject.toml
File metadata and controls
91 lines (78 loc) · 2.09 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "pyhems"
version = "0.5.1"
license = "MIT"
license-files = ["LICENSE"]
description = "ECHONET Lite library for Home Energy Management System (HEMS)"
readme = "README.md"
authors = [
{name = "Sayurin"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.13"
dependencies = [
"bidict>=0.23.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"pytest-cov>=4.0",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
pyhems = ["*.json", "py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
required-version = ">=0.13.0"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"D", # pydocstyle (docstrings)
"RUF", # ruff-specific
"ASYNC", # flake8-async
"PT", # flake8-pytest-style
"SIM", # flake8-simplify
"T20", # flake8-print
"ARG", # flake8-unused-arguments
]
ignore = [
"E501", # line too long (formatter handles this)
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring (conflicts with D211)
"D213", # Multi-line docstring summary should start at the second line (conflicts with D212)
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D103", "S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
python_version = "3.13"
strict = true
[[tool.mypy.overrides]]
module = "tests.*"
strict = false
[tool.codespell]
skip = "./.*,*.csv,*.json"
quiet-level = 2