Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
pip3 install ruff
ruff format --check --diff plugin-template utils.py
ruff check --diff plugin-template utils.py
ruff check plugin-template utils.py
Comment thread
jobselko marked this conversation as resolved.
- name: "Bootstrap catdog plugin"
working-directory: "plugin_template"
run: |
Expand All @@ -54,7 +54,7 @@ jobs:

- name: "Lint code"
run: |
ruff check --diff
ruff check

- name: "Check for common gettext problems"
run: |
Expand Down
1 change: 1 addition & 0 deletions plugin-template
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ def remove_deprecated_files(plugin_root_dir: Path, sections: list[str]) -> None:
def reformat_files(plugin_root_dir: Path, config: dict[str, t.Any]) -> None:
try:
subprocess.run(["ruff", "format"], cwd=plugin_root_dir)
subprocess.run(["ruff", "check", "--select", "I", "--fix"], cwd=plugin_root_dir)
except FileNotFoundError:
pass

Expand Down
2 changes: 1 addition & 1 deletion templates/ci/Makefile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ lint:
yamllint -s -d '{extends: relaxed, rules: {line-length: disable}}' .github/workflows
bump-my-version bump --dry-run release
ruff format --check --diff
ruff check --diff
ruff check
{%- if check_manifest %}
check-manifest
{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/github/.github/workflows/lint.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: "Lint code"
run: |
ruff check --diff
ruff check
{%- if check_gettext %}

- name: "Check for common gettext problems"
Expand Down