diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f850471..e9cd97a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,18 +9,18 @@ default_language_version: python: python3 repos: - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 24.2.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-toml - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.8.0 hooks: - id: mypy args: ["--strict"] @@ -28,6 +28,6 @@ repos: additional_dependencies: ["httpx", "packaging", "typer>=0.3.2"] - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.292 + rev: v0.2.2 hooks: - id: ruff diff --git a/src/pip_deepfreeze/project_name.py b/src/pip_deepfreeze/project_name.py index 6099fdb..22680eb 100644 --- a/src/pip_deepfreeze/project_name.py +++ b/src/pip_deepfreeze/project_name.py @@ -4,6 +4,7 @@ (setuptools' setup.cfg, flit, generic PEP 621). Fallback to a slower PEP 517 metadata preparation. """ + import configparser import os from functools import lru_cache