From ada55eb4b116ad08da1aad9cf2a77833a88df645 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 28 Aug 2024 22:41:05 -0400 Subject: [PATCH] Bump ruff --- .pre-commit-config.yaml | 2 +- pyproject.toml | 3 +++ tests/conftest.py | 1 + tests/test_calc.py | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 548c3b6..e4bb1f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.4 + rev: v0.6.2 hooks: - id: ruff args: [--fix] diff --git a/pyproject.toml b/pyproject.toml index 4a01eb3..623be4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,3 +69,6 @@ target-version = "py311" [tool.ruff.lint] select = ["E4", "E7", "E9", "F", "I", "UP"] ignore = ["F403"] + +[tool.ruff.lint.isort] +known-first-party = ["conftest"] diff --git a/tests/conftest.py b/tests/conftest.py index 536f264..4351f7f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -42,6 +42,7 @@ from collections.abc import Iterable, Sequence from threading import Lock import pytest + from earwigbot.bot import Bot from earwigbot.commands import Command from earwigbot.config import BotConfig diff --git a/tests/test_calc.py b/tests/test_calc.py index 73bd524..d420d1a 100644 --- a/tests/test_calc.py +++ b/tests/test_calc.py @@ -19,6 +19,7 @@ # SOFTWARE. import pytest + from conftest import MockCommand from earwigbot.commands.calc import Calc