Skip to content

Commit 257a9d9

Browse files
Align Ruff configuration with Impact project
- Disable preview rules to match Impact configuration - Remove unused noqa directives (RUF100) - Fix S404, PLW0108, PLR0917 directives that are no longer needed
1 parent 267c930 commit 257a9d9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ exclude_lines = [
487487
]
488488

489489
[tool.ruff]
490-
preview = true
490+
# preview = true # Disabled to align with Impact configuration
491491
line-length = 88
492492
respect-gitignore = true
493493
[tool.ruff.format]

scripts/hatch_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
import subprocess # noqa: S404
5+
import subprocess
66
from typing import Any
77

88
from hatchling.builders.hooks.plugin.interface import BuildHookInterface

src/firefighter/incidents/forms/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(
7171
class EnumChoiceField(TypedChoiceField):
7272
def __init__(self, *args: Any, enum_class: type[T], **kwargs: Any) -> None:
7373
# Explicit for type checking
74-
self.coerce_func: Callable[[Any], T] = lambda val: enum_class( # noqa: PLW0108
74+
self.coerce_func: Callable[[Any], T] = lambda val: enum_class(
7575
val
7676
)
7777
self.enum_class = enum_class

src/firefighter/raid/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class JiraAttachmentError(Exception):
3535

3636

3737
class RaidJiraClient(JiraClient):
38-
def create_issue( # noqa: PLR0912, PLR0913, C901, PLR0917
38+
def create_issue( # noqa: PLR0912, PLR0913, C901
3939
self,
4040
issuetype: str | None,
4141
summary: str,

src/firefighter/raid/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def create_issue_customer(
215215
return issue
216216

217217

218-
def create_issue_seller( # noqa: PLR0913, PLR0917
218+
def create_issue_seller( # noqa: PLR0913
219219
title: str,
220220
description: str,
221221
reporter: str,

0 commit comments

Comments
 (0)