mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 20:10:09 +00:00
Use a separate repo for pre-commit (#229)
This commit is contained in:
parent
fa0954fe47
commit
27cc7e236c
3 changed files with 6 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
repos:
|
||||
- repo: https://github.com/charliermarsh/ruff
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.0.40
|
||||
hooks:
|
||||
- id: lint
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
- id: lint
|
||||
name: ruff lint
|
||||
description: Run ruff to lint Python files.
|
||||
entry: ruff
|
||||
language: python
|
||||
types_or: [python]
|
||||
pass_filenames: true
|
|
@ -54,11 +54,11 @@ You can run ruff in `--watch` mode to automatically re-run on-change:
|
|||
ruff path/to/code/ --watch
|
||||
```
|
||||
|
||||
ruff also works with [Pre-Commit](https://pre-commit.com) (requires Cargo on system):
|
||||
ruff also works with [pre-commit](https://pre-commit.com):
|
||||
|
||||
```yaml
|
||||
repos:
|
||||
- repo: https://github.com/charliermarsh/ruff
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.0.40
|
||||
hooks:
|
||||
- id: lint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue