Skip to content

Commit

Permalink
Ad ruff rules UP(pyupgrade)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet committed Sep 20, 2024
1 parent bdf08a4 commit 35b6a70
Show file tree
Hide file tree
Showing 47 changed files with 1,575 additions and 1,624 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
- name: Ruff Linting AstraPy
run: |
poetry run ruff astrapy
poetry run ruff check astrapy
- name: Ruff Linting Tests
run: |
poetry run ruff tests
poetry run ruff check tests
- name: Isort Linting AstraPy
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ FMT_FLAGS ?= --check
format: format-src format-tests

format-tests:
poetry run ruff tests
poetry run ruff check tests
poetry run isort tests $(FMT_FLAGS) --profile black
poetry run black tests $(FMT_FLAGS)
poetry run mypy tests

format-src:
poetry run ruff astrapy
poetry run ruff check astrapy
poetry run isort astrapy $(FMT_FLAGS) --profile black
poetry run black astrapy $(FMT_FLAGS)
poetry run mypy astrapy
Expand Down
Loading

0 comments on commit 35b6a70

Please sign in to comment.