Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Auto-generated] Update dependencies #239

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci_check_pyproject_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ jobs:
- name: Create PR
if: env.UPDATE_DEPS == 'true'
id: cpr
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
committer: "${{ inputs.git_username }} <${{ inputs.git_email }}>"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_update_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:

- name: Create PR
id: cpr
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
committer: "${{ inputs.git_username }} <${{ inputs.git_email }}>"
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
# Black is a code style and formatter
# It works on files in-place
- repo: https://github.com/ambv/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

Expand All @@ -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.1.13
rev: v0.1.15
hooks:
- id: ruff
# Fix what can be fixed in-place and exit with non-zero status if files were
Expand All @@ -57,7 +57,7 @@ repos:
# More information can be found in its documentation:
# https://bandit.readthedocs.io/en/latest/
- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
rev: 1.7.7
hooks:
- id: bandit
args: ["-r"]
Expand All @@ -74,7 +74,7 @@ repos:
- id: mypy

- repo: https://github.com/SINTEF/ci-cd
rev: v2.7.1
rev: v2.7.2
hooks:
- id: docs-api-reference
args:
Expand Down
1 change: 1 addition & 0 deletions ci_cd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CI/CD Tools. Tiny package to run invoke tasks as a standalone program."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions ci_cd/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CI/CD-specific exceptions."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions ci_cd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
See [invoke documentation](https://docs.pyinvoke.org/en/stable/concepts/library.html)
for more information.
"""

from __future__ import annotations

from invoke import Collection, Program
Expand Down
1 change: 1 addition & 0 deletions ci_cd/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Repository management tasks powered by `invoke`.
More information on `invoke` can be found at [pyinvoke.org](http://www.pyinvoke.org/).
"""

from __future__ import annotations

from .api_reference_docs import create_api_reference_docs
Expand Down
1 change: 1 addition & 0 deletions ci_cd/tasks/api_reference_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Create Python API reference in the documentation.
This is specifically to be used with the MkDocs and mkdocstrings framework.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions ci_cd/tasks/docs_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Create the documentation index (home) page from `README.md`.
"""

from __future__ import annotations

import re
Expand Down
1 change: 1 addition & 0 deletions ci_cd/tasks/setver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Set the specified version.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions ci_cd/tasks/update_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Update dependencies in a `pyproject.toml` file.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions ci_cd/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for CI/CD."""

from __future__ import annotations

from .console_printing import Emoji, error_msg, info_msg, warning_msg
Expand Down
1 change: 1 addition & 0 deletions ci_cd/utils/console_printing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Relevant tools for printing to the console."""

from __future__ import annotations

import platform
Expand Down
1 change: 1 addition & 0 deletions ci_cd/utils/file_io.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for handling IO operations."""

from __future__ import annotations

import re
Expand Down
1 change: 1 addition & 0 deletions ci_cd/utils/versions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Handle versions."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test fixtures."""

from __future__ import annotations

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/tasks/test_api_reference_docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test `ci_cd.tasks.api_reference_docs`."""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
1 change: 1 addition & 0 deletions tests/tasks/test_update_deps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test `ci_cd.tasks.update_deps()`."""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
19 changes: 11 additions & 8 deletions tests/utils/test_versions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for utils/versions.py"""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -140,8 +141,10 @@ def test_semanticversion_invalid() -> None:
]
for input_, exc_msg in invalid_inputs:
with pytest.raises(ValueError, match=exc_msg):
SemanticVersion(**input_) if isinstance(input_, dict) else SemanticVersion(
input_
(
SemanticVersion(**input_)
if isinstance(input_, dict)
else SemanticVersion(input_)
)


Expand Down Expand Up @@ -826,13 +829,13 @@ def _parametrize_ignore_version() -> (
f"semver-{test_case[3]['version-update']}-latest={test_case[1]}"
] = test_case
elif test_case[2]:
res[
",".join(f"{_['operator']}{_['version']}" for _ in test_case[2])
] = test_case
res[",".join(f"{_['operator']}{_['version']}" for _ in test_case[2])] = (
test_case
)
elif test_case[3]:
res[
f"semver-{test_case[3]['version-update']}-latest={test_case[1]}"
] = test_case
res[f"semver-{test_case[3]['version-update']}-latest={test_case[1]}"] = (
test_case
)
else:
res["no rules"] = test_case
assert len(res) == len(test_cases)
Expand Down
Loading