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
8 changes: 8 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Commits that only reformat code. Ignore them in blame:
#
# git config blame.ignoreRevsFile .git-blame-ignore-revs
#
# GitHub's blame view applies this file automatically.

# style: apply ruff format across the codebase
6af294d26500d4ecd328477e4143ac523c31ac05
3 changes: 2 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ bind-mounted:
Run these locally before pushing:

```bash
# Lint (matches the "Ruff" CI check)
# Lint and formatting (both match the "Ruff" CI check)
ruff check custom_components/taskmate tests scripts
ruff format --check custom_components/taskmate tests scripts # drop --check to fix

# Cards and panel (matches the "ESLint" CI check)
npm ci && npm run lint
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- name: Run ruff
run: ruff check custom_components/taskmate tests scripts

- name: Check formatting
run: ruff format --check custom_components/taskmate tests scripts

eslint:
name: ESLint (cards + panel)
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ repos:
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

- repo: local
hooks:
Expand Down
Loading
Loading