-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump ruff from 0.1.9 to 0.1.11 (#201)
* Bump ruff from 0.1.9 to 0.1.11 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.9 to 0.1.11. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@v0.1.9...v0.1.11) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * make pre-commit prettier --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simon Hörrle <[email protected]>
- Loading branch information
1 parent
b20b38d
commit 142b5fe
Showing
11 changed files
with
299 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,89 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
- repo: local | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-yaml | ||
- id: check-json | ||
name: "✅ Check JSON files" | ||
language: system | ||
types: [json] | ||
entry: poetry run check-json | ||
- id: check-toml | ||
- id: check-xml | ||
name: "✅ Check TOML files" | ||
language: system | ||
types: [toml] | ||
entry: poetry run check-toml | ||
- id: check-yaml | ||
name: "✅ Check YAML files" | ||
language: system | ||
types: [yaml] | ||
entry: poetry run check-yaml | ||
- id: check-json | ||
name: "📁 Check for large files" | ||
language: system | ||
entry: poetry run check-added-large-files | ||
- id: check-json | ||
name: "🐛 Check for forgotten debug statemens" | ||
language: system | ||
types: [python] | ||
entry: poetry run debug-statement-hook | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
name: "💥 Check for merge conflicts" | ||
language: system | ||
types: [text] | ||
entry: poetry run check-merge-conflict | ||
- id: check-symlinks | ||
name: "🔗 Check for broken symlinks" | ||
language: system | ||
types: [symlink] | ||
entry: poetry run check-symlinks | ||
- id: codespell | ||
name: "💭 Check for code spelling" | ||
entry: poetry run codespell --write-changes --skip="./*" | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: no-commit-to-branch | ||
args: ['--branch', 'main', '--branch', 'master'] | ||
- repo: local | ||
hooks: | ||
- id: ruff format | ||
name: ruff format | ||
entry: poetry run ruff format | ||
name: "🔚 Fix End of Files" | ||
language: system | ||
types: [text] | ||
entry: poetry run end-of-file-fixer | ||
stages: [commit, push, manual] | ||
- id: end-of-file-fixer | ||
name: "⬜ Fix trailing whitespaces" | ||
language: system | ||
types: [text] | ||
entry: poetry run end-of-file-fixer | ||
stages: [commit, push, manual] | ||
- id: ruff-check | ||
name: "🐶 Ruff Linter" | ||
language: system | ||
types: [python] | ||
- id: ruff lint | ||
name: ruff lint | ||
entry: poetry run ruff | ||
entry: poetry run ruff check --fix | ||
require_serial: true | ||
stages: [commit, push, manual] | ||
- id: ruff-format | ||
name: "🐶 Ruff Formatter" | ||
language: system | ||
types: [python] | ||
entry: poetry run ruff format | ||
require_serial: true | ||
stages: [commit, push, manual] | ||
- id: poetry pyproject check | ||
name: "📜 Check pyproject with Poetry" | ||
language: system | ||
entry: poetry check | ||
pass_filenames: false | ||
always_run: true | ||
- id: no-commit-to-branch | ||
name: "🛑 Don't commit to main branch" | ||
language: system | ||
entry: poetry run no-commit-to-branch | ||
pass_filenames: false | ||
always_run: true | ||
args: | ||
- --branch=master | ||
- --branch=main | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.7.1 | ||
hooks: | ||
- id: prettier | ||
name: 🎨 Format using prettier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.