Skip to content

Commit

Permalink
update github actions to use ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Jan 10, 2024
1 parent b194b0e commit 4980f5f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest]

steps:
Expand All @@ -32,15 +32,11 @@ jobs:
- name: Lint with black
run: |
black --check --diff screenpy_selenium
- name: Lint with isort
black --check --diff tests
- name: Lint with ruff
run: |
isort --check-only --diff screenpy_selenium
- name: Lint with flake8
run: |
flake8 --exit-zero screenpy_selenium
ruff check .
- name: Lint with mypy
run: |
mypy screenpy_selenium
- name: Lint with pylint
run: |
pylint screenpy_selenium
mypy tests
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
max-parallel: 9
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ select = [
# "TCH", # flake8-type-checking
# "TRY", # tryceratops
# "UP", # python upgrade
# "W", # pycodestyle warning
"W", # pycodestyle warning
# "YTT", # flake8-2020

# we would like these someday, but not yet
Expand Down

0 comments on commit 4980f5f

Please sign in to comment.