Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed lints #108

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ jobs:
strategy:
matrix:
cmd:
- black
- isort
- ruff
- mypy
runs-on: ubuntu-latest
steps:
Expand Down
28 changes: 10 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
ci:
skip: [fmt, clippy, check]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: trailing-whitespace
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: python isort
pass_filenames: false
always_run: true
args: ["python"]
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
name: python black
pass_filenames: false
always_run: true
args: ["python"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
Expand All @@ -28,13 +15,18 @@ repos:
pass_filenames: false
args: ["python"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.291
rev: v0.8.1
hooks:
- id: ruff
name: ruff
pass_filenames: false
always_run: true
args: ["python", "--fix"]
- id: ruff-format
name: ruff
pass_filenames: false
always_run: true
args: ["python"]
- repo: local
hooks:
- id: fmt
Expand Down Expand Up @@ -77,4 +69,4 @@ repos:
entry: cargo
pass_filenames: false
args:
- check
- check
Loading
Loading