Skip to content

Commit

Permalink
2021: Address deprecation warnings for latest ruff version
Browse files Browse the repository at this point in the history
Ensure the continuity of invoking `ruff`.
  • Loading branch information
ericvw committed Apr 25, 2024
1 parent 5a81c44 commit 3edce64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion 2021/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ lint-types:

.PHONY: format
format:
$(ruff) --fix-only $(srcs)
$(ruff) check --fix-only $(srcs)
$(black) $(srcs)

.PHONY: distclean
Expand Down
18 changes: 8 additions & 10 deletions 2021/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# Group errors by file.
output-format = "full"

# Show sumamry of fixes.
show-fixes = true

[lint]
extend-select = [
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"B", # flake8-bugbear
]

# Group errors by file.
output-format = "grouped"

# Show source context of error.
show-source = true

# Show sumamry of fixes.
show-fixes = true

[isort]
[lint.isort]
force-single-line = true
force-sort-within-sections = true
order-by-type = false

0 comments on commit 3edce64

Please sign in to comment.