Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9aeda5d1f4 | ||
![]() |
d19233b897 | ||
![]() |
76e47323a8 | ||
![]() |
12753357c0 | ||
![]() |
39f54b73c7 |
@ -1,6 +1,6 @@
|
||||
- id: ruff
|
||||
name: ruff
|
||||
description: "Run 'ruff' for extremely fast Python linting"
|
||||
- id: ruff-check
|
||||
name: ruff check
|
||||
description: "Run 'ruff check' for extremely fast Python linting"
|
||||
entry: ruff check --force-exclude
|
||||
language: python
|
||||
types_or: [python, pyi, jupyter]
|
||||
@ -10,7 +10,7 @@
|
||||
minimum_pre_commit_version: "2.9.2"
|
||||
|
||||
- id: ruff-format
|
||||
name: ruff-format
|
||||
name: ruff format
|
||||
description: "Run 'ruff format' for extremely fast Python formatting"
|
||||
entry: ruff format --force-exclude
|
||||
language: python
|
||||
@ -19,3 +19,15 @@
|
||||
require_serial: true
|
||||
additional_dependencies: []
|
||||
minimum_pre_commit_version: "2.9.2"
|
||||
|
||||
# Legacy alias
|
||||
- id: ruff
|
||||
name: ruff (legacy alias)
|
||||
description: "Run 'ruff check' for extremely fast Python linting"
|
||||
entry: ruff check --force-exclude
|
||||
language: python
|
||||
types_or: [python, pyi, jupyter]
|
||||
args: []
|
||||
require_serial: true
|
||||
additional_dependencies: []
|
||||
minimum_pre_commit_version: "2.9.2"
|
||||
|
18
README.md
18
README.md
@ -1,9 +1,9 @@
|
||||
# ruff-pre-commit
|
||||
|
||||
[](https://github.com/astral-sh/ruff)
|
||||
[](https://pypi.python.org/pypi/ruff)
|
||||
[](https://pypi.python.org/pypi/ruff)
|
||||
[](https://pypi.python.org/pypi/ruff)
|
||||
[](https://pypi.python.org/pypi/ruff)
|
||||
[](https://pypi.python.org/pypi/ruff)
|
||||
[](https://pypi.python.org/pypi/ruff)
|
||||
[](https://github.com/astral-sh/ruff-pre-commit/actions)
|
||||
|
||||
A [pre-commit](https://pre-commit.com/) hook for [Ruff](https://github.com/astral-sh/ruff).
|
||||
@ -20,10 +20,10 @@ To run Ruff's [linter](https://docs.astral.sh/ruff/linter) and [formatter](https
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.11.9
|
||||
rev: v0.11.13
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
- id: ruff-check
|
||||
# Run the formatter.
|
||||
- id: ruff-format
|
||||
```
|
||||
@ -34,10 +34,10 @@ To enable lint fixes, add the `--fix` argument to the lint hook:
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.11.9
|
||||
rev: v0.11.13
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
- id: ruff-check
|
||||
args: [ --fix ]
|
||||
# Run the formatter.
|
||||
- id: ruff-format
|
||||
@ -49,10 +49,10 @@ To avoid running on Jupyter Notebooks, remove `jupyter` from the list of allowed
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.11.9
|
||||
rev: v0.11.13
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
- id: ruff-check
|
||||
types_or: [ python, pyi ]
|
||||
args: [ --fix ]
|
||||
# Run the formatter.
|
||||
|
@ -2,5 +2,5 @@
|
||||
name = "ruff-pre-commit"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"ruff==0.11.9",
|
||||
"ruff==0.11.13",
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user