11[build-system ]
2- requires = [
3- " setuptools>=40.8.0" ,
4- " wheel" ,
5- ]
2+ requires = [" setuptools>=40.8.0" , " wheel" ]
63build-backend = " setuptools.build_meta"
74
8- [project ]
9- name = " OctoPrint-FirmwareCheck"
10- version = " 2025.05.14"
11- description = " Checks for unsafe or broken printer firmwares"
12- authors = [
13- { name = " Gina Häußge" , email = " gina@octoprint.org" },
14- ]
15- license = " AGPL-3.0-or-later"
16- requires-python = " >=3.7,<4"
17- dependencies = []
18-
19- [project .entry-points ."octoprint .plugin" ]
20- firmware_check = " octoprint_firmware_check"
21-
22- [project .urls ]
23- Homepage = " https://github.com/OctoPrint/OctoPrint-FirmwareCheck"
24-
25- [project .optional-dependencies ]
26- develop = [
27- " go-task-bin" ,
28- ]
29-
30- [project .readme ]
31- file = " README.md"
32- content-type = " markdown"
33-
34- [tool .setuptools ]
35- include-package-data = true
36- packages = [
37- " octoprint_firmware_check" ,
38- ]
39-
405[tool .ruff ]
416exclude = [
7+ # standard stuff
428 " .bzr" ,
439 " .direnv" ,
4410 " .eggs" ,
@@ -66,20 +32,15 @@ exclude = [
6632 " site-packages" ,
6733 " venv" ,
6834]
35+
6936line-length = 90
7037indent-width = 4
38+
39+ # Assume Python 3.7
7140target-version = " py37"
7241
7342[tool .ruff .lint ]
74- select = [
75- " B" ,
76- " C" ,
77- " E" ,
78- " F" ,
79- " I" ,
80- " W" ,
81- " B9" ,
82- ]
43+ select = [" B" , " C" , " E" , " F" , " I" , " W" , " B9" ]
8344ignore = [
8445 " E203" ,
8546 " E231" ,
@@ -92,11 +53,9 @@ ignore = [
9253 " W605" ,
9354 " C901" ,
9455]
95- fixable = [
96- " I" ,
97- " C4" ,
98- " E" ,
99- ]
56+ fixable = [" I" , " C4" , " E" ]
57+
58+ # Allow unused variables when underscore-prefixed.
10059dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
10160
10261[tool .ruff .lint .isort ]
@@ -109,5 +68,17 @@ quote-style = "double"
10968indent-style = " space"
11069skip-magic-trailing-comma = false
11170line-ending = " lf"
71+
72+ # Enable auto-formatting of code examples in docstrings. Markdown,
73+ # reStructuredText code/literal blocks and doctests are all supported.
74+ #
75+ # This is currently disabled by default, but it is planned for this
76+ # to be opt-out in the future.
11277docstring-code-format = false
78+
79+ # Set the line length limit used when formatting code snippets in
80+ # docstrings.
81+ #
82+ # This only has an effect when the `docstring-code-format` setting is
83+ # enabled.
11384docstring-code-line-length = " dynamic"
0 commit comments