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:
Alper Berber
2023-04-11 18:20:48 +03:00
committed by GitHub
parent faa937020a
commit 23c7b2f90f
24 changed files with 52 additions and 55 deletions

View File

@@ -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,
)