Skip to content

Commit

Permalink
chore: Turn off preview lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-d-zhang committed Sep 15, 2024
1 parent 78015a3 commit bd77134
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def linkcode_resolve(domain: str, info: dict) -> str:
if not info["module"]:
return None

import importlib # noqa: PLC0415
import inspect # noqa: PLC0415
import types # noqa: PLC0415
import importlib
import inspect
import types

mod = importlib.import_module(info["module"])

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tests = { file = ["requirements/requirements-tests.txt"] }
docs = { file = ["requirements/requirements-docs.txt"] }

[tool.ruff]
preview = true
preview = false
unsafe-fixes = true
target-version = "py311"
line-length = 120
Expand All @@ -32,6 +32,7 @@ ignore = [
"G004", # (Logging statement uses f-string) - Developer UX
"S101", # (Use of `assert` detected) - This should probably be changed
"PLR6301", # (Method `x` could be a function, class method, or static method) - false positives
"ANN101", # (Missing type annotation for `cls` in method) - Also for `self`; this just adds noise
]

[tool.ruff.lint.extend-per-file-ignores]
Expand Down
2 changes: 1 addition & 1 deletion src/bot/dragonfly_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PackageReport:
class DragonflyServices:
"""A class wrapping Dragonfly's API."""

def __init__( # noqa: PLR0913,PLR0917 -- Maybe pass the entire constants class?
def __init__( # noqa: PLR0913 -- Maybe pass the entire constants class?
self: Self,
session: ClientSession,
base_url: str,
Expand Down
2 changes: 1 addition & 1 deletion src/bot/exts/core/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Log(Cog):
def __init__(self: Self, bot: Bot) -> None:
self.bot = bot

async def send_log_message( # noqa: PLR0913,PLR0917 -- Maybe refactor this?
async def send_log_message( # noqa: PLR0913 -- Maybe refactor this?
self: Self,
icon_url: str | None,
colour: discord.Colour | int,
Expand Down

0 comments on commit bd77134

Please sign in to comment.