Debian Codegraph @

pyproject.toml

raw symbols SCIP
1 [build-system]
2 requires = ["setuptools==77.0.3", "wheel==0.45.1"]
3 build-backend = "setuptools.build_meta"
4
5 [project]
6 name = "pydeconz"
7 version = "120"
8 license = {text = "MIT"}
9 description = "Python library for communicating with deCONZ REST-API"
10 readme = "README.rst"
11 authors = [{name = "Robert Svensson", email = "[email protected]"}]
12 keywords = ["deconz", "zigbee", "homeassistant"]
13 classifiers = [
14 "Development Status :: 5 - Production/Stable",
15 "Intended Audience :: Developers",
16 "License :: OSI Approved :: MIT License",
17 "Operating System :: OS Independent",
18 "Programming Language :: Python :: 3.12",
19 "Topic :: Home Automation",
20 ]
21 requires-python = ">=3.12.0"
22 dependencies = [
23 "aiohttp>3.9",
24 "orjson>3.9",
25 ]
26
27 [project.optional-dependencies]
28 requirements = [
29 "aiohttp==3.11.14",
30 "orjson==3.10.15",
31 ]
32 requirements-test = [
33 "aioresponses==0.7.8",
34 "mypy==1.15.0",
35 "pytest==8.3.5",
36 "pytest-aiohttp==1.1.0",
37 "pytest-cov==6.0.0",
38 "ruff==0.11.1",
39 ]
40 requirements-dev = [
41 "pre-commit==4.2.0"
42 ]
43
44 [project.urls]
45 "Source Code" = "https://github.com/Kane610/deconz"
46 "Bug Reports" = "https://github.com/Kane610/deconz/issues"
47 "Forum" = "https://community.home-assistant.io/t/deconz-official-thread/"
48
49 [project.scripts]
50 pydeconz = "pydeconz.__main__:main"
51
52 [tool.setuptools.packages.find]
53 include = ["pydeconz*"]
54
55 [tool.setuptools.package-data]
56 "pydeconz" = ["py.typed"]
57
58 [tool.coverage.report]
59 fail_under = 95
60 exclude_also = [
61 "if TYPE_CHECKING:"
62 ]
63
64 [tool.mypy]
65 python_version = "3.12"
66 check_untyped_defs = true
67 disallow_any_generics = true
68 disallow_incomplete_defs = true
69 disallow_subclassing_any = true
70 disallow_untyped_calls = true
71 disallow_untyped_decorators = true
72 disallow_untyped_defs = true
73 no_implicit_optional = true
74 no_implicit_reexport = true
75 strict_equality = true
76 warn_redundant_casts = true
77 warn_return_any = true
78 warn_unreachable = true
79 warn_unused_configs = true
80 warn_unused_ignores = true
81
82 [tool.pytest.ini_options]
83 addopts = "--cov=pydeconz --cov-report term-missing"
84 asyncio_mode = "auto"
85 log_cli = false
86 log_cli_level = "DEBUG"
87 testpaths = ["tests"]
88
89 [tool.ruff]
90 src = ["pydeconz", "tests"]
91 target-version = "py312"
92 lint.select = [
93 "B002", # Python does not support the unary prefix increment
94 "B005", # Using .strip() with multi-character strings is misleading
95 "B007", # Loop control variable {name} not used within loop body
96 "B014", # Exception handler with duplicate exception
97 "B015", # Pointless comparison. Did you mean to assign a value? Otherwise, prepend assert or remove it.
98 "B018", # Found useless attribute access. Either assign it to a variable or remove it.
99 "B023", # Function definition does not bind loop variable {name}
100 "B026", # Star-arg unpacking after a keyword argument is strongly discouraged
101 "B032", # Possible unintentional type annotation (using :). Did you mean to assign (using =)?
102 "C", # complexity
103 "COM818", # Trailing comma on bare tuple prohibited
104 "D", # docstrings
105 "E", # pycodestyle
106 "F", # pyflakes/autoflake
107 "G", # flake8-logging-format
108 "I", # isort
109 "ICN001", # import concentions; {name} should be imported as {asname}
110 "ISC", # flake8-implicit-str-concat
111 "LOG", # flake8-logging
112 "N804", # First argument of a class method should be named cls
113 "N805", # First argument of a method should be named self
114 "N815", # Variable {name} in class scope should not be mixedCase
115 "PERF", # A Linter for performance anti-patterns
116 "PGH004", # Use specific rule codes when using noqa
117 "PIE", # flake8-pie
118 "PL", # pylint
119 "PT", # pytest
120 "RSE", # flake8-raise
121 "RUF005", # Consider iterable unpacking instead of concatenation
122 "RUF006", # Store a reference to the return value of asyncio.create_task
123 "RUF100", # Unused `noqa` directive
124 "S307", # No builtin eval() allowed
125 "SIM", # flake8-simplify
126 "T100", # Trace found: {name} used
127 "T20", # flake8-print
128 "UP", # pyupgrade
129 "W", # pycodestyle
130 ]
131
132 lint.ignore = [
133 "D202", # No blank lines allowed after function docstring
134 "D203", # 1 blank line required before class docstring
135 "D206", # Checks for docstrings that are indented with tabs
136 "D213", # Multi-line docstring summary should start at the second line
137 "E501", # Checks for lines that exceed the specified maximum character length
138 "ISC001", # Implicitly concatenated string literals on one line
139 "PLR0912", # Maximum number of branches allowed for a function or method body
140 "PLR0913", # Too many arguments to function call ({c_args} > {max_args})
141 "PLR0915", # Too many statements ({statements} > {max_statements})
142 "PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
143 "W191", # Checks for indentation that uses tabs
144 ]
145
146 [tool.ruff.lint.flake8-pytest-style]
147 fixture-parentheses = false
148
149 [tool.ruff.lint.isort]
150 force-sort-within-sections = true
151 known-first-party = ["pydeconz"]
152 combine-as-imports = true
153
154 [tool.ruff.lint.mccabe]
155 max-complexity = 14