~gotmax23/mappie

303a581e0d431157878ac10ecd33b10e13ba94c4 — Maxwell G 8 months ago 873b6b5 main
ruff.toml: sort and reformat file
1 files changed, 17 insertions(+), 16 deletions(-)

M ruff.toml
M ruff.toml => ruff.toml +17 -16
@@ 1,24 1,20 @@
# Copyright (C) 2023 Maxwell G <maxwell@gtmx.me>
# SPDX-License-Identifier: MIT

select = [
    # flake8-builtins
    "A",
    # flake8-bugbear
    "B",
    # pycodestyle
    "E",
    "W",
    # pyflakes
    "F",
    # unused-arguments
    "ARG",
    # flake8-simplify
    "SIM",
    # pylint
    "PL",
    "A",    # flake8-builtins
    "ARG",  # unused-arguments
    "B",    # flake8-bugbear
    "E",    # pycodestyle errors
    "F",    # pyflakes
    "PL",   # pylint
    "SIM",  # flake8-simplify
    "W",    # pycodestyle warnings
]
ignore = [
    # function-call-in-default-argument
    # There's nothing wrong with calling a function that returns an immutable
    # object
    "B008",
    # `zip()` without an explicit `strict=` parameter.
    # `zip()` only has that parameter in py310+


@@ 26,11 22,16 @@ ignore = [
    # Allow overwriting loop variable
    "PLW2901",
    # Magic value used in comparison
    # This is a good rule, but the checker is a bit overzealous.
    "PLR2004",
    # Too many arguments to function call
    "PLR0913",
]

src = [
    "src",
    "tests",
]

[extend-per-file-ignores]
"tests/*" = ["ARG"]