Skip to content

Commit

Permalink
Fixed ruff warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
selwin committed May 1, 2024
1 parent 3000808 commit 9c42e04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors.
ruff check --show-source rq tests
ruff check --output-format=full rq tests
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ skip-string-normalization = true
[tool.ruff]
# Set what ruff should check for.
# See https://beta.ruff.rs/docs/rules/ for a list of rules.
select = [
lint.select = [
"E", # pycodestyle errors
"F", # pyflakes errors
"I", # import sorting
Expand All @@ -107,7 +107,7 @@ select = [
line-length = 120 # To match black.
target-version = "py38"

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["rq"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]

Expand Down
1 change: 0 additions & 1 deletion rq/maintenance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import warnings

from typing import TYPE_CHECKING

from .intermediate_queue import IntermediateQueue
Expand Down

0 comments on commit 9c42e04

Please sign in to comment.