Skip to content

Commit ed795cc

Browse files
committed
Revert "chore: migrate to modern tooling"
This reverts commit f8f0345.
1 parent f8f0345 commit ed795cc

File tree

6 files changed

+810
-131
lines changed

6 files changed

+810
-131
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
python-version: "3.10"
2020
- name: 🏗 Install build dependencies
2121
run: >-
22-
python -m pip install wheel build --user
22+
python -m pip install wheel --user
2323
- name: 🔨 Build a binary wheel and a source tarball
2424
run: >-
25-
python -m build
25+
python setup.py sdist bdist_wheel
2626
- name: ⬆ Upload build result
2727
uses: actions/upload-artifact@v4
2828
with:

Taskfile.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

pyproject.toml

Lines changed: 21 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,10 @@
11
[build-system]
2-
requires = [
3-
"setuptools>=40.8.0",
4-
"wheel",
5-
]
2+
requires = ["setuptools>=40.8.0", "wheel"]
63
build-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 = "[email protected]" },
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]
416
exclude = [
7+
# standard stuff
428
".bzr",
439
".direnv",
4410
".eggs",
@@ -66,20 +32,15 @@ exclude = [
6632
"site-packages",
6733
"venv",
6834
]
35+
6936
line-length = 90
7037
indent-width = 4
38+
39+
# Assume Python 3.7
7140
target-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"]
8344
ignore = [
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.
10059
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
10160

10261
[tool.ruff.lint.isort]
@@ -109,5 +68,17 @@ quote-style = "double"
10968
indent-style = "space"
11069
skip-magic-trailing-comma = false
11170
line-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.
11277
docstring-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.
11384
docstring-code-line-length = "dynamic"

requirements.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
###
2+
# This file is only here to make sure that something like
3+
#
4+
# pip install -e .
5+
#
6+
# works as expected. Requirements can be found in setup.py.
7+
###
8+
9+
.

setup.cfg

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[metadata]
2+
license_file = LICENSE
3+
4+
[bdist_wheel]
5+
universal = 1
6+
7+
[flake8]
8+
max-line-length = 90
9+
extend-ignore = E203, E231, E265, E266, E402, E501, E731, B950, W503, W504, W605
10+
select = B,C,E,F,W,T4,B9
11+
12+
[isort]
13+
multi_line_output = 3
14+
include_trailing_comma = True
15+
force_grid_wrap = 0
16+
use_parentheses = True
17+
ensure_newline_before_comments = True
18+
line_length = 90

0 commit comments

Comments
 (0)