11[build-system ]
2- requires = [" setuptools>=40.8.0" , " wheel" ]
2+ requires = [
3+ " setuptools>=68" ,
4+ ]
35build-backend = " setuptools.build_meta"
46
7+ [project ]
8+ name = " OctoPrint-FileCheck"
9+ version = " 2024.11.12"
10+ description = " Checks for common issues in uploaded files"
11+ authors = [
12+ { name = " Gina Häußge" , email = " gina@octoprint.org" },
13+ ]
14+ requires-python = " >=3.7,<4"
15+ dependencies = []
16+ dynamic = [
17+ " license" ,
18+ ]
19+
20+ [project .entry-points ."octoprint .plugin" ]
21+ file_check = " octoprint_file_check"
22+
23+ [project .urls ]
24+ Homepage = " https://github.com/OctoPrint/OctoPrint-FileCheck"
25+
26+ [project .optional-dependencies ]
27+ develop = [
28+ " pre-commit" ,
29+ " go-task-bin" ,
30+ ]
31+
32+ [project .readme ]
33+ file = " README.md"
34+ content-type = " markdown"
35+
36+ [tool .setuptools ]
37+ include-package-data = true
38+
39+ [tool .setuptools .packages .find ]
40+ include = [
41+ " octoprint_file_check" ,
42+ " octoprint_file_check.*" ,
43+ ]
44+
545[tool .ruff ]
646exclude = [
7- # standard stuff
847 " .bzr" ,
948 " .direnv" ,
1049 " .eggs" ,
@@ -32,15 +71,20 @@ exclude = [
3271 " site-packages" ,
3372 " venv" ,
3473]
35-
3674line-length = 90
3775indent-width = 4
38-
39- # Assume Python 3.7
4076target-version = " py37"
4177
4278[tool .ruff .lint ]
43- select = [" B" , " C" , " E" , " F" , " I" , " W" , " B9" ]
79+ select = [
80+ " B" ,
81+ " C" ,
82+ " E" ,
83+ " F" ,
84+ " I" ,
85+ " W" ,
86+ " B9" ,
87+ ]
4488ignore = [
4589 " E203" ,
4690 " E231" ,
@@ -53,9 +97,11 @@ ignore = [
5397 " W605" ,
5498 " C901" ,
5599]
56- fixable = [" I" , " C4" , " E" ]
57-
58- # Allow unused variables when underscore-prefixed.
100+ fixable = [
101+ " I" ,
102+ " C4" ,
103+ " E" ,
104+ ]
59105dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
60106
61107[tool .ruff .lint .isort ]
@@ -68,17 +114,5 @@ quote-style = "double"
68114indent-style = " space"
69115skip-magic-trailing-comma = false
70116line-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.
77117docstring-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.
84118docstring-code-line-length = " dynamic"
0 commit comments