mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
use ruff instead of flake8 (#2278)
* add: use ruff instead of flake8 * Update ruff switches and remove flake8 plugins * fix: ignore linting rules * fix: ignore I001 * fix: spaces before noqa --------- Co-authored-by: Kevin Chung <kchung@ctfd.io>
This commit is contained in:
4
tests/cache/test_challenges.py
vendored
4
tests/cache/test_challenges.py
vendored
@@ -60,7 +60,7 @@ def test_deleting_challenge_clears_cache_solves():
|
||||
data = req.get_json()["data"]
|
||||
challenge = data[0]
|
||||
assert challenge["solves"] == 1
|
||||
from CTFd.utils.challenges import (
|
||||
from CTFd.utils.challenges import ( # noqa: I001
|
||||
get_solves_for_challenge_id,
|
||||
get_solve_counts_for_challenges,
|
||||
)
|
||||
@@ -100,7 +100,7 @@ def test_deleting_solve_clears_cache():
|
||||
data = req.get_json()["data"]
|
||||
challenge = data[0]
|
||||
assert challenge["solves"] == 1
|
||||
from CTFd.utils.challenges import (
|
||||
from CTFd.utils.challenges import ( # noqa: I001
|
||||
get_solves_for_challenge_id,
|
||||
get_solve_counts_for_challenges,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user