Skip to content

Commit

Permalink
style: Disable too-many-arguments project-wide
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Nov 7, 2024
1 parent fbbcdc7 commit b195184
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions keymap_drawer/draw/combo.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ class ComboDrawerMixin(UtilsMixin):
out: StringIO
layout: PhysicalLayout

def _draw_arc_dendron( # pylint: disable=too-many-arguments
self, p_1: Point, p_2: Point, x_first: bool, shorten: float, arc_scale: float
) -> None:
def _draw_arc_dendron(self, p_1: Point, p_2: Point, x_first: bool, shorten: float, arc_scale: float) -> None:
diff = p_2 - p_1

# check if the points are too close to draw an arc, if so draw a line instead
Expand Down
2 changes: 1 addition & 1 deletion keymap_drawer/draw/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def print_key(self, p_key: PhysicalKey, l_key: LayoutKey, key_ind: int) -> None:

self.out.write("</g>\n")

def print_layers( # pylint: disable=too-many-arguments,too-many-locals
def print_layers( # pylint: disable=too-many-locals
self,
p: Point,
layout: PhysicalLayout,
Expand Down
2 changes: 1 addition & 1 deletion keymap_drawer/draw/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _draw_glyph(self, p: Point, name: str, legend_type: LegendType, classes: Seq
f'height="{height}" width="{width}"{self._to_class_str(classes)}/>\n'
)

def _draw_legend( # pylint: disable=too-many-arguments
def _draw_legend(
self, p: Point, words: Sequence[str], classes: Sequence[str], legend_type: LegendType, shift: float = 0
) -> None:
if not words:
Expand Down
2 changes: 1 addition & 1 deletion keymap_drawer/dts.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class DeviceTree:
_compatible_re = re.compile(r'compatible = "(.*?)"')
_custom_data_header = "__keymap_drawer_data__"

def __init__( # pylint: disable=too-many-arguments
def __init__(
self,
in_str: str,
file_name: str | None = None,
Expand Down
4 changes: 2 additions & 2 deletions keymap_drawer/physical_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class PhysicalKey:
is_iso_enter: bool = False

@classmethod
def from_qmk_spec( # pylint: disable=too-many-arguments
def from_qmk_spec(
cls, scale: float, pos: Point, width: float, height: float, rotation: float, rotation_pos: Point
) -> "PhysicalKey":
"""
Expand Down Expand Up @@ -182,7 +182,7 @@ def normalize(self) -> "PhysicalLayout":
return PhysicalLayout(keys=[k - min_pt for k in self.keys])


def layout_factory( # pylint: disable=too-many-arguments
def layout_factory(
config: Config,
qmk_keyboard: str | None = None,
qmk_info_json: Path | BytesIO | None = None,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ good-names = "x,y,w,h,r,f,k,v,p,m,c"
max-line-length = 120

[tool.pylint."messages control"]
disable = ["too-few-public-methods", "line-too-long"]
disable = ["too-few-public-methods", "line-too-long", "too-many-arguments"]

[tool.mypy]
plugins = "pydantic.mypy"
Expand Down

0 comments on commit b195184

Please sign in to comment.