Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#309)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.1 → v0.8.2](astral-sh/ruff-pre-commit@v0.8.1...v0.8.2)

* Update .pre-commit-config.yaml

* Import Self from typing/_extensions

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Casper Welzel Andersen <43357585+CasperWA@users.noreply.github.com>
Co-authored-by: Casper Welzel Andersen <casper.w.andersen@sintef.no>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent 56c93b9 commit 9757353
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
# More information can be found in its documentation:
# https://docs.astral.sh/ruff/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
rev: v0.8.3
hooks:
- id: ruff
# Fix what can be fixed in-place and exit with non-zero status if files were
Expand Down
6 changes: 6 additions & 0 deletions ci_cd/utils/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@
from ci_cd.exceptions import InputError, InputParserError, UnableToResolve

if TYPE_CHECKING: # pragma: no cover
import sys
from typing import Any, Dict, List

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self

from packaging.requirements import Requirement
from typing_extensions import Literal

Expand Down

0 comments on commit 9757353

Please sign in to comment.