diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c02b401..c080ecd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,22 +1,22 @@ repos: - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.4.2 hooks: - id: black language_version: python3.11 - repo: https://github.com/pycqa/isort/ - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/frnmst/md-toc - rev: 8.1.9 + rev: 9.0.0 hooks: - id: md-toc - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace diff --git a/src/buildsys_dateversion/_hooks.py b/src/buildsys_dateversion/_hooks.py index 7030082..b094f6f 100644 --- a/src/buildsys_dateversion/_hooks.py +++ b/src/buildsys_dateversion/_hooks.py @@ -135,9 +135,9 @@ def distribution_name(self) -> str: @property def version(self) -> str: if "dateversion-distribution-version" not in self.config_settings: - self.config_settings[ - "dateversion-distribution-version" - ] = self._get_version() + self.config_settings["dateversion-distribution-version"] = ( + self._get_version() + ) return self.config_settings["dateversion-distribution-version"] def _get_version(self) -> str: