From 6abaf3b28899ab99766dd2a0f5b18fa73a6382d1 Mon Sep 17 00:00:00 2001 From: mosfet80 Date: Thu, 15 Aug 2024 17:58:23 +0200 Subject: [PATCH 1/2] Update .pre-commit-config.yaml updated libs --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e3016027..487fff7d1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ exclude: '.*\.patch' repos: # Standard hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-ast @@ -34,13 +34,13 @@ repos: # Python hooks - repo: https://github.com/asottile/pyupgrade - rev: v2.38.2 + rev: v3.17.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/psf/black - rev: 22.8.0 + rev: 24.8.0 hooks: - id: black args: ["--line-length=99"] @@ -81,14 +81,14 @@ repos: # Docs - RestructuredText hooks - repo: https://github.com/PyCQA/doc8 - rev: v1.0.0 + rev: v1.1.1 hooks: - id: doc8 args: ['--max-line-length=100', '--ignore=D001'] exclude: CHANGELOG\.rst$ - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 + rev: v1.10.0 hooks: - id: rst-backticks exclude: CHANGELOG\.rst$ From acd14c23d6cf75e938f4742dcea83cf3417c0252 Mon Sep 17 00:00:00 2001 From: mosfet80 Date: Tue, 20 Aug 2024 16:37:25 +0200 Subject: [PATCH 2/2] Update cogen.py --- lely_core_libraries/cogen/cogen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lely_core_libraries/cogen/cogen.py b/lely_core_libraries/cogen/cogen.py index 7cc3345a8..2843ca096 100644 --- a/lely_core_libraries/cogen/cogen.py +++ b/lely_core_libraries/cogen/cogen.py @@ -65,7 +65,7 @@ def main(): for node_name in nodes: modified_file[node_name] = nodes[node_name] - with open(args.output_file, mode="wt") as output: + with open(args.output_file, mode="w") as output: yaml.dump(modified_file, output) return