diff --git a/buildbot_nix/buildbot_nix.py b/buildbot_nix/buildbot_nix.py index 3ed6955..7852b1b 100644 --- a/buildbot_nix/buildbot_nix.py +++ b/buildbot_nix/buildbot_nix.py @@ -6,7 +6,7 @@ import os import uuid from collections import defaultdict from pathlib import Path -from typing import Any, Generator, List +from typing import Any from buildbot.plugins import steps, util from buildbot.process import buildstep, logobserver, remotecommand @@ -348,7 +348,7 @@ def nix_eval_config( worker_names: list[str], github_token_secret: str, supported_systems: list[str], - automerge_users: List[str] = [], + automerge_users: list[str] = [], max_memory_size: int = 4096, ) -> util.BuilderConfig: """ diff --git a/pyproject.toml b/pyproject.toml index 8545e68..40a2122 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,10 @@ +[tool.ruff] +target-version = "py311" +line-length = 88 + +select = ["E", "F", "I", "U"] +ignore = [ "E501" ] + [tool.mypy] python_version = "3.10" warn_redundant_casts = true