Skip to content

Commit

Permalink
Update checklist for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Oct 10, 2024
1 parent dea1dad commit f7f24f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@

- [ ] The code change is tested and works locally.
- [ ] There is no commented out code in this PR.
- [ ] The code has been formatted using Black (`black --fast custom_components`)
- [ ] The code has been formatted using Ruff (`python3 -m ruff format custom_components`)
- [ ] The code quality has been checked using Ruff (`python3 -m ruff check custom_components --fix`)

If user exposed functionality or configuration variables are added/changed:

Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff-format
files: ^(custom_components|bin|tests)/.+\.py$
- id: ruff
args: [ --fix ]
files: ^(custom_components|bin|tests)/.+\.py$
- id: ruff-format
files: ^(custom_components|bin|tests)/.+\.py$
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
Expand Down

0 comments on commit f7f24f8

Please sign in to comment.