diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a7ab83..80c6330 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_stages: - manual repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-executables-have-shebangs @@ -16,7 +16,7 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.1 + rev: v0.3.7 hooks: - id: ruff - id: ruff-format @@ -25,7 +25,7 @@ repos: hooks: - id: gitlint - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.8.0' + rev: 'v1.9.0' hooks: - id: mypy - repo: https://github.com/codespell-project/codespell diff --git a/declared_env/_declared_variables.py b/declared_env/_declared_variables.py index 57b729a..750a9f6 100644 --- a/declared_env/_declared_variables.py +++ b/declared_env/_declared_variables.py @@ -1,4 +1,5 @@ """Variables declarations.""" + from __future__ import annotations import os diff --git a/declared_env/_environment_parser.py b/declared_env/_environment_parser.py index e5cd54a..d440500 100644 --- a/declared_env/_environment_parser.py +++ b/declared_env/_environment_parser.py @@ -5,6 +5,7 @@ https://realpython.com/python-descriptors/ """ + from abc import ABC from logging import error diff --git a/declared_env/_exceptions.py b/declared_env/_exceptions.py index ad6eb5e..c44636f 100644 --- a/declared_env/_exceptions.py +++ b/declared_env/_exceptions.py @@ -1,4 +1,5 @@ """Custom exceptions.""" + from typing import Any diff --git a/declared_env/_prefixable.py b/declared_env/_prefixable.py index bfc1bfa..d92663e 100644 --- a/declared_env/_prefixable.py +++ b/declared_env/_prefixable.py @@ -1,4 +1,5 @@ """Abstract class with prefix attribute.""" + from abc import ABC, abstractmethod diff --git a/pyproject.toml b/pyproject.toml index 7e67881..34131dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,8 @@ lint.ignore = [ "D203", "FLY002", # fix produces invalid code https://github.com/astral-sh/ruff/issues/5150 "G004", # logging with f string is ok + "COM812", + "ISC001", ] line-length = 98 target-version = "py39" diff --git a/requirements-dev.txt b/requirements-dev.txt index aeb1dff..256964c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,3 @@ -pre-commit==3.4.0 +pre-commit==3.7.0 -r requirements-ci.txt