From 0af8fa55a43c04bc297f659824a32191935b5594 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 00:12:52 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.2.0](https://github.com/psf/black/compare/23.12.1...24.2.0) - [github.com/teemtee/tmt.git: 1.30.0 → 1.31.0](https://github.com/teemtee/tmt.git/compare/1.30.0...1.31.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.2.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.11...v0.2.1) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 614f6e8a..0c19d3b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.2.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier @@ -33,7 +33,7 @@ repos: additional_dependencies: [types-pkg_resources, types-requests, types-Deprecated] - repo: https://github.com/teemtee/tmt.git - rev: 1.30.0 + rev: 1.31.0 hooks: - id: tmt-lint # Do not run in pre-commit.ci as it requires an internet access @@ -56,7 +56,7 @@ repos: stages: [manual, push] - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.11 + rev: v0.2.1 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 212b28023efc20dd372397479932ff4040e853cc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 00:13:42 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ogr/services/pagure/issue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ogr/services/pagure/issue.py b/ogr/services/pagure/issue.py index 02e1d017..1fe6014e 100644 --- a/ogr/services/pagure/issue.py +++ b/ogr/services/pagure/issue.py @@ -100,9 +100,9 @@ def __update_info( try: data = { "title": title if title is not None else self.title, - "issue_content": description - if description is not None - else self.description, + "issue_content": ( + description if description is not None else self.description + ), } updated_issue = self.project._call_project_api(