Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9aeda5d1f4 | ||
![]() |
d19233b897 | ||
![]() |
76e47323a8 | ||
![]() |
12753357c0 | ||
![]() |
39f54b73c7 | ||
![]() |
24e02b24b8 | ||
![]() |
f0fe93c067 | ||
![]() |
e84319e627 | ||
![]() |
d119aaff68 | ||
![]() |
8304991d8f |
@ -1,6 +1,6 @@
|
|||||||
- id: ruff
|
- id: ruff-check
|
||||||
name: ruff
|
name: ruff check
|
||||||
description: "Run 'ruff' for extremely fast Python linting"
|
description: "Run 'ruff check' for extremely fast Python linting"
|
||||||
entry: ruff check --force-exclude
|
entry: ruff check --force-exclude
|
||||||
language: python
|
language: python
|
||||||
types_or: [python, pyi, jupyter]
|
types_or: [python, pyi, jupyter]
|
||||||
@ -10,7 +10,7 @@
|
|||||||
minimum_pre_commit_version: "2.9.2"
|
minimum_pre_commit_version: "2.9.2"
|
||||||
|
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
name: ruff-format
|
name: ruff format
|
||||||
description: "Run 'ruff format' for extremely fast Python formatting"
|
description: "Run 'ruff format' for extremely fast Python formatting"
|
||||||
entry: ruff format --force-exclude
|
entry: ruff format --force-exclude
|
||||||
language: python
|
language: python
|
||||||
@ -19,3 +19,15 @@
|
|||||||
require_serial: true
|
require_serial: true
|
||||||
additional_dependencies: []
|
additional_dependencies: []
|
||||||
minimum_pre_commit_version: "2.9.2"
|
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
|
# ruff-pre-commit
|
||||||
|
|
||||||
[](https://github.com/astral-sh/ruff)
|
[](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)
|
[](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).
|
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:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
# Ruff version.
|
# Ruff version.
|
||||||
rev: v0.11.4
|
rev: v0.11.13
|
||||||
hooks:
|
hooks:
|
||||||
# Run the linter.
|
# Run the linter.
|
||||||
- id: ruff
|
- id: ruff-check
|
||||||
# Run the formatter.
|
# Run the formatter.
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
```
|
```
|
||||||
@ -34,10 +34,10 @@ To enable lint fixes, add the `--fix` argument to the lint hook:
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
# Ruff version.
|
# Ruff version.
|
||||||
rev: v0.11.4
|
rev: v0.11.13
|
||||||
hooks:
|
hooks:
|
||||||
# Run the linter.
|
# Run the linter.
|
||||||
- id: ruff
|
- id: ruff-check
|
||||||
args: [ --fix ]
|
args: [ --fix ]
|
||||||
# Run the formatter.
|
# Run the formatter.
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
@ -49,10 +49,10 @@ To avoid running on Jupyter Notebooks, remove `jupyter` from the list of allowed
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
# Ruff version.
|
# Ruff version.
|
||||||
rev: v0.11.4
|
rev: v0.11.13
|
||||||
hooks:
|
hooks:
|
||||||
# Run the linter.
|
# Run the linter.
|
||||||
- id: ruff
|
- id: ruff-check
|
||||||
types_or: [ python, pyi ]
|
types_or: [ python, pyi ]
|
||||||
args: [ --fix ]
|
args: [ --fix ]
|
||||||
# Run the formatter.
|
# Run the formatter.
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
name = "ruff-pre-commit"
|
name = "ruff-pre-commit"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ruff==0.11.4",
|
"ruff==0.11.13",
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user