Skip to content

Commit f83315f

Browse files
[pre-commit.ci] pre-commit autoupdate (#103)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.0](astral-sh/ruff-pre-commit@v0.11.12...v0.12.0) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: JasonGrace2282 <aarush.deshpande@gmail.com>
1 parent 893eff8 commit f83315f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: codespell
2020
files: ^.*\.(py|md|rst)$
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.11.12
22+
rev: v0.12.0
2323
hooks:
2424
- id: ruff
2525
args: [ "--fix", "--exit-non-zero-on-fix" ]

tin/apps/submissions/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def create_backup_copy(self, submission_text: str) -> None:
293293
f_obj.write(submission_text)
294294

295295
def rerun(self) -> Signature:
296-
from .tasks import run_submission # pylint: disable=import-outside-toplevel
296+
from .tasks import run_submission # noqa: PLC0415
297297

298298
self.complete = False
299299
self.has_been_graded = False

tin/apps/users/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ class UsersConfig(AppConfig):
77
name = "tin.apps.users"
88

99
def ready(self):
10-
from . import signals # pylint: disable=unused-import,import-outside-toplevel # noqa: F401
10+
from . import signals # noqa: F401, PLC0415

tin/tests/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
import pytest
4+
35

46
class PytestRunner:
57
"""Runs pytest to discover and run tests."""
@@ -20,8 +22,6 @@ def run_tests(self, test_labels, **kwargs):
2022
2123
It translates some of Django's test command option to pytest's.
2224
"""
23-
import pytest
24-
2525
argv = []
2626
if self.verbosity == 0:
2727
argv.append("--quiet")

0 commit comments

Comments
 (0)