From ec08228af3794f3e16f4f395db70fefffc99f427 Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Fri, 29 Nov 2024 20:55:37 +0330 Subject: [PATCH] run fixit and ruff --- distro/base/install.py | 2 +- pyproject.toml | 7 +++++++ scal3/utils.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/distro/base/install.py b/distro/base/install.py index 7a15e9437..4a3564ea2 100755 --- a/distro/base/install.py +++ b/distro/base/install.py @@ -35,7 +35,7 @@ def printUsage(): E = "\x1b[0;0;0m" # End Format # len=8 print( f"Usage: python3 {sys.argv[0]} [{U}TERGET_DIR{E}] " - f"[--for-pkg|--portable] " + "[--for-pkg|--portable] " f"[--prefix={U}/usr/local{E}] " f"[--python={U}python3.x{E}]", ) diff --git a/pyproject.toml b/pyproject.toml index 1c32150fa..152d9f245 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -267,3 +267,10 @@ ignore_names = [ "_*", "test*", ] + +[tool.fixit] +disable = ["fixit.rules.no_namedtuple"] + +[[tool.fixit.overrides]] +path = "libs/bson/" +disable = ["fixit.rules"] diff --git a/scal3/utils.py b/scal3/utils.py index 1cb19c9af..c6d6a608c 100644 --- a/scal3/utils.py +++ b/scal3/utils.py @@ -26,7 +26,7 @@ from math import ceil, floor from typing import Any -Number: typing.TypeAlias = "int | float" +Number: typing.TypeAlias = int | float def ifloor(x: float) -> int: