Browse Source

Bump ruff

tags/v0.4
Ben Kurtovic 3 months ago
parent
commit
ada55eb4b1
4 changed files with 6 additions and 1 deletions
  1. +1
    -1
      .pre-commit-config.yaml
  2. +3
    -0
      pyproject.toml
  3. +1
    -0
      tests/conftest.py
  4. +1
    -0
      tests/test_calc.py

+ 1
- 1
.pre-commit-config.yaml View File

@@ -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]


+ 3
- 0
pyproject.toml View File

@@ -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"]

+ 1
- 0
tests/conftest.py View File

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


+ 1
- 0
tests/test_calc.py View File

@@ -19,6 +19,7 @@
# SOFTWARE.

import pytest

from conftest import MockCommand
from earwigbot.commands.calc import Calc



Loading…
Cancel
Save