Skip to content

Commit

Permalink
Upgrade ruff from 0.0.291 to 0.1.5
Browse files Browse the repository at this point in the history
This also includes moving from black to ruff format for formatting
  • Loading branch information
ChrisLovering committed Nov 9, 2023
1 parent 16f101c commit 522b3cc
Show file tree
Hide file tree
Showing 4 changed files with 509 additions and 693 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
python_version: '3.11'

- name: Run pre-commit hooks
run: SKIP=ruff pre-commit run --all-files
run: SKIP=ruff-lint pre-commit run --all-files

# Run `ruff` using github formatting to enable automatic inline annotations.
- name: Run ruff
run: "ruff check --format=github ."
run: "ruff check --output-format=github ."

artifact:
name: Generate & upload pull request artifacts
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ repos:

- repo: local
hooks:
- id: ruff
name: ruff
- id: ruff-lint
name: ruff linting
description: Run ruff linting
entry: poetry run ruff check --force-exclude
language: system
'types_or': [python, pyi]
require_serial: true
args: [--fix, --exit-non-zero-on-fix]

- id: black
name: Black
description: Run black
entry: poetry run black
- id: ruff-format
name: ruff formatting
description: Run ruff formatting
entry: poetry run ruff format --force-exclude
language: system
'types_or': [python, pyi]
require_serial: true
Loading

0 comments on commit 522b3cc

Please sign in to comment.