Skip to content

ci: switch linter & formatter to ruff #3

ci: switch linter & formatter to ruff

ci: switch linter & formatter to ruff #3

Triggered via pull request April 6, 2024 07:28
Status Failure
Total duration 19s
Artifacts

ruff.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (INP001): tools/database/helper.py#L1
tools/database/helper.py:1:1: INP001 File `tools/database/helper.py` is part of an implicit namespace package. Add an `__init__.py`.
Ruff (COM812): tools/database/helper.py#L21
tools/database/helper.py:21:86: COM812 Trailing comma missing
Ruff (PLW0603): tools/database/helper.py#L54
tools/database/helper.py:54:12: PLW0603 Using the global statement to update `file_cnt` is discouraged
Ruff (B007): tools/database/helper.py#L62
tools/database/helper.py:62:13: B007 Loop control variable `source` not used within loop body
Ruff (PLW0603): tools/database/helper.py#L133
tools/database/helper.py:133:12: PLW0603 Using the global statement to update `artworks` is discouraged
Ruff (PLW0603): tools/database/helper.py#L133
tools/database/helper.py:133:22: PLW0603 Using the global statement to update `success` is discouraged
Ruff (PLW0603): tools/database/helper.py#L133
tools/database/helper.py:133:31: PLW0603 Using the global statement to update `directory` is discouraged
Ruff (T201): tools/database/helper.py#L137
tools/database/helper.py:137:5: T201 `print` found
Ruff (T201): tools/database/helper.py#L138
tools/database/helper.py:138:5: T201 `print` found
Ruff (PLW2901): tools/database/helper.py#L146
tools/database/helper.py:146:13: PLW2901 `for` loop variable `source` overwritten by assignment target