From 5915bf4ffa58119fc9d36f33d60507c145f22785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 18 Sep 2023 15:41:34 +0200 Subject: [PATCH] ruff: also lint upgrade rules --- buildbot_nix/buildbot_nix.py | 4 ++-- pyproject.toml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) 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