Skip to content

Format Python code with ruff #8688

Format Python code with ruff

Format Python code with ruff #8688

Triggered via pull request January 16, 2025 15:35
@pieternpietern
opened #2166
ruff
Status Failure
Total duration 7m 12s
Artifacts

push.yml

on: pull_request
cleanups
0s
cleanups
lint
34s
lint
validate-bundle-schema
48s
validate-bundle-schema
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

24 errors and 3 warnings
Ruff (F541): cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/install.py#L1
cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/install.py:1:7: F541 f-string without any placeholders
Ruff (E401): cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/main.py#L1
cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/main.py:1:1: E401 Multiple imports on one line
Ruff (F821): integration/python/testdata/test.py#L8
integration/python/testdata/test.py:8:1: F821 Undefined name `dbutils`
Ruff: libs/notebook/testdata/sql_ipynb.ipynb#L1
libs/notebook/testdata/sql_ipynb.ipynb:1:1: SyntaxError: Simple statements must be separated by newlines or semicolons
Ruff: libs/notebook/testdata/sql_ipynb.ipynb#L1
libs/notebook/testdata/sql_ipynb.ipynb:1:1: SyntaxError: Expected a statement
Ruff: libs/notebook/testdata/sql_ipynb.ipynb#L1
libs/notebook/testdata/sql_ipynb.ipynb:1:1: SyntaxError: Expected a statement
Ruff: libs/sync/testdata/sync-fileset/invalid-nb.ipynb#L1
libs/sync/testdata/sync-fileset/invalid-nb.ipynb:1:1: Expected a Jupyter Notebook, which must be internally stored as JSON, but this file isn't valid JSON: EOF while parsing a value at line 1 column 0
tests (ubuntu-latest)
The process '/opt/hostedtoolcache/ruff/0.9.1/x86_64/ruff' failed with exit code 1
Ruff (F541): cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/install.py#L1
cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/install.py:1:7: F541 f-string without any placeholders
Ruff (E401): cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/main.py#L1
cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/main.py:1:1: E401 Multiple imports on one line
Ruff (F821): integration/python/testdata/test.py#L8
integration/python/testdata/test.py:8:1: F821 Undefined name `dbutils`
Ruff: libs/notebook/testdata/sql_ipynb.ipynb#L1
libs/notebook/testdata/sql_ipynb.ipynb:1:1: SyntaxError: Simple statements must be separated by newlines or semicolons
Ruff: libs/notebook/testdata/sql_ipynb.ipynb#L1
libs/notebook/testdata/sql_ipynb.ipynb:1:1: SyntaxError: Expected a statement
Ruff: libs/notebook/testdata/sql_ipynb.ipynb#L1
libs/notebook/testdata/sql_ipynb.ipynb:1:1: SyntaxError: Expected a statement
Ruff: libs/sync/testdata/sync-fileset/invalid-nb.ipynb#L1
libs/sync/testdata/sync-fileset/invalid-nb.ipynb:1:1: Expected a Jupyter Notebook, which must be internally stored as JSON, but this file isn't valid JSON: EOF while parsing a value at line 1 column 0
tests (macos-latest)
The process '/Users/runner/hostedtoolcache/ruff/0.9.1/aarch64/ruff' failed with exit code 1
Ruff (F541): cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/install.py#L1
cmd\labs\project\testdata\installed-in-home\.databricks\labs\blueprint\lib\install.py:1:7: F541 f-string without any placeholders
Ruff (E401): cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib/main.py#L1
cmd\labs\project\testdata\installed-in-home\.databricks\labs\blueprint\lib\main.py:1:1: E401 Multiple imports on one line
Ruff (F821): integration/python/testdata/test.py#L8
integration\python\testdata\test.py:8:1: F821 Undefined name `dbutils`
Ruff: libs/notebook/testdata/sql_ipynb.ipynb#L1
libs\notebook\testdata\sql_ipynb.ipynb:1:1: SyntaxError: Simple statements must be separated by newlines or semicolons
Ruff: libs/notebook/testdata/sql_ipynb.ipynb#L1
libs\notebook\testdata\sql_ipynb.ipynb:1:1: SyntaxError: Expected a statement
Ruff: libs/notebook/testdata/sql_ipynb.ipynb#L1
libs\notebook\testdata\sql_ipynb.ipynb:1:1: SyntaxError: Expected a statement
Ruff: libs/sync/testdata/sync-fileset/invalid-nb.ipynb#L1
libs\sync\testdata\sync-fileset\invalid-nb.ipynb:1:1: Expected a Jupyter Notebook, which must be internally stored as JSON, but this file isn't valid JSON: EOF while parsing a value at line 1 column 0
tests (windows-latest)
The process 'C:\hostedtoolcache\windows\ruff\0.9.1\x86_64\ruff.exe' failed with exit code 1
tests (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
validate-bundle-schema
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636