Skip to content

Commit

Permalink
docs: replace black with ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jan 24, 2024
1 parent 6a47d30 commit ea21cb5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@ repos:
- id: commitizen
stages: [commit-msg]

# Autoformat: Python code
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black

# Lint / autoformat: Python code
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.1.9"
rev: "v0.1.6"
hooks:
# Run the linter
- id: ruff
args: [--exit-non-zero-on-fix]
args: [--fix, --exit-non-zero-on-fix]
# Run the formatter
- id: ruff-format

# Autoformat: YAML, JSON, Markdown, etc.
- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down

0 comments on commit ea21cb5

Please sign in to comment.