Ben Kurtovic 2 лет назад
Родитель
Сommit
ada55eb4b1
4 измененных файлов: 6 добавлений и 1 удалений
  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 Просмотреть файл

@@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.4
rev: v0.6.2
hooks: hooks:
- id: ruff - id: ruff
args: [--fix] args: [--fix]


+ 3
- 0
pyproject.toml Просмотреть файл

@@ -69,3 +69,6 @@ target-version = "py311"
[tool.ruff.lint] [tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "UP"] select = ["E4", "E7", "E9", "F", "I", "UP"]
ignore = ["F403"] ignore = ["F403"]

[tool.ruff.lint.isort]
known-first-party = ["conftest"]

+ 1
- 0
tests/conftest.py Просмотреть файл

@@ -42,6 +42,7 @@ from collections.abc import Iterable, Sequence
from threading import Lock from threading import Lock


import pytest import pytest

from earwigbot.bot import Bot from earwigbot.bot import Bot
from earwigbot.commands import Command from earwigbot.commands import Command
from earwigbot.config import BotConfig from earwigbot.config import BotConfig


+ 1
- 0
tests/test_calc.py Просмотреть файл

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


import pytest import pytest

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




Загрузка…
Отмена
Сохранить