From a1e92d809a3835039f14fffa1995a0b1c0deadca Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 21 Oct 2024 20:32:53 +0300 Subject: [PATCH] Update linting --- .pre-commit-config.yaml | 16 ++++++++-------- pyproject.toml | 12 +++++------- tox.ini | 4 ++-- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 97e6c50..4f6c704 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,17 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.4 + rev: v0.7.0 hooks: - id: ruff args: [--exit-non-zero-on-fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -26,28 +26,28 @@ repos: exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.2 + rev: 0.29.4 hooks: - id: check-github-workflows - id: check-renovate - repo: https://github.com/rhysd/actionlint - rev: v1.7.1 + rev: v1.7.3 hooks: - id: actionlint - repo: https://github.com/tox-dev/pyproject-fmt - rev: 2.2.3 + rev: 2.4.3 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.19 + rev: v0.21 hooks: - id: validate-pyproject - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.3.2 + rev: 1.4.1 hooks: - id: tox-ini-fmt diff --git a/pyproject.toml b/pyproject.toml index 31a9c6d..b1de3fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,10 +80,11 @@ lint.select = [ "YTT", # flake8-2020 ] lint.ignore = [ - "E203", # Whitespace before ':' - "E221", # Multiple spaces before operator - "E226", # Missing whitespace around arithmetic operator - "E241", # Multiple spaces after ',' + "E203", # Whitespace before ':' + "E221", # Multiple spaces before operator + "E226", # Missing whitespace around arithmetic operator + "E241", # Multiple spaces after ',' + "UP038", # Makes code slower and more verbose ] lint.per-file-ignores."tests/*" = [ "D", @@ -94,9 +95,6 @@ lint.isort.known-first-party = [ "humanize" ] lint.isort.required-imports = [ "from __future__ import annotations" ] lint.pydocstyle.convention = "google" -[tool.pyproject-fmt] -max_supported_python = "3.13" - [tool.pytest.ini_options] addopts = "--color=yes" filterwarnings = [ diff --git a/tox.ini b/tox.ini index c030914..508f747 100644 --- a/tox.ini +++ b/tox.ini @@ -40,12 +40,12 @@ commands = [testenv:mypy] deps = - mypy==1.11.2 + mypy==1.12 pytest types-freezegun types-setuptools commands = - mypy --strict --pretty --show-error-codes . {posargs} + mypy . {posargs} [pytest] addopts = --color=yes --doctest-modules