浏览代码

Bump ruff

tags/v0.4
Ben Kurtovic 2 个月前
父节点
当前提交
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:
- 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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

import pytest

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



正在加载...
取消
保存