Skip to content

Commit

Permalink
update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Feb 17, 2024
1 parent 92a9d2b commit 000d957
Show file tree
Hide file tree
Showing 4 changed files with 322 additions and 389 deletions.
7 changes: 1 addition & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@ repos:
- id: debug-statements
- id: mixed-line-ending
- id: check-case-conflict
# - repo: https://github.com/psf/black
# rev: 23.11.0
# hooks:
# - id: black
# args: [--line-length=150]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.0
Expand Down
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@ ruff:
ruff-check:
poetry run ruff check .

black:
poetry run black .

black-check:
poetry run black . --check

mypy:
poetry run mypy cashu --check-untyped-defs

format: black ruff
format: ruff

check: black-check ruff-check mypy
check: ruff-check mypy

clean:
rm -r cashu.egg-info/ || true
Expand Down
Loading

0 comments on commit 000d957

Please sign in to comment.