Skip to content

Commit

Permalink
Add ruff rules UP(pyupgrade)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet committed Sep 30, 2024
1 parent bd99707 commit 9559eb6
Show file tree
Hide file tree
Showing 48 changed files with 1,679 additions and 1,732 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 9559eb6

Please sign in to comment.