Skip to content

Commit ba0cd99

Browse files
committed
fix: linting errors
1 parent 6c10162 commit ba0cd99

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

scripts/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
"""Helpers every action script shares: inputs, outputs, the Plugin API and DLL checks.
32
43
Not run directly; imported by the build, archive, installer and layout scripts.

scripts/toolchain.py

100644100755
File mode changed.

test/test_scripts.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"""Self-check for the action scripts. Run: python3 test/test_scripts.py"""
33

44
# The scripts are imported after scripts/ is put on the path
5-
# ruff: noqa: E402
65

76
import os
87
import re
@@ -16,11 +15,11 @@
1615
sys.path.insert(0, str(ROOT / "scripts"))
1716

1817
import archive
19-
import common
2018
import build_c as build
2119
import build_pascal as pascal
2220
import build_rust as rust
2321
import check_layout
22+
import common
2423
import installer
2524
import toolchain
2625

@@ -157,7 +156,7 @@ def test_step_outputs():
157156
"RUNNER_TEMP": tmp,
158157
"OUTPUT_DIR": tmp,
159158
"GITHUB_OUTPUT": str(outputs),
160-
entry.takes.upper(): "Contrib/Hello/hello" + sorted(entry.exts)[0],
159+
entry.takes.upper(): "Contrib/Hello/hello" + min(entry.exts),
161160
}
162161
with mock.patch.dict(os.environ, environ, clear=True):
163162
toolchain.main("resolve")

0 commit comments

Comments
 (0)