Skip to content

Commit 1afcef6

Browse files
[pre-commit.ci] pre-commit autoupdate (#154)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: c59bba8fb259db0fec2bbb77ad8ba51ea7341b56 → f12be1ebaa5351c1fc76472de98db2c3446c8253](astral-sh/ruff-pre-commit@c59bba8...f12be1e) - [github.com/python-jsonschema/check-jsonschema: 1a4bb160cab6417b3045e1b37b6b72449243e658 → 4f85d46a92dc17713078e5de73f8a13190edf6fc](python-jsonschema/check-jsonschema@1a4bb16...4f85d46) - [github.com/zizmorcore/zizmor-pre-commit: e3eebf65325ccc992422292cb7a4baee967cf815 → fa412071e4f5d44d44f9e365f4676f9df92456a2](zizmorcore/zizmor-pre-commit@e3eebf6...fa41207) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix ruff issue --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent b63a2ad commit 1afcef6

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: c59bba8fb259db0fec2bbb77ad8ba51ea7341b56 # frozen: v0.15.20
3+
rev: f12be1ebaa5351c1fc76472de98db2c3446c8253 # frozen: v0.16.10
44
hooks:
55
- id: ruff-check
66
args: [--fix, --exit-non-zero-on-fix]
@@ -20,7 +20,7 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/python-jsonschema/check-jsonschema
23-
rev: 1a4bb160cab6417b3045e1b37b6b72449243e658 # frozen: 0.37.4
23+
rev: 4f85d46a92dc17713078e5de73f8a13190edf6fc # frozen: 0.38.2
2424
hooks:
2525
- id: check-github-workflows
2626

@@ -35,7 +35,7 @@ repos:
3535
- id: check-useless-excludes
3636

3737
- repo: https://github.com/zizmorcore/zizmor-pre-commit
38-
rev: e3eebf65325ccc992422292cb7a4baee967cf815 # frozen: v1.26.1
38+
rev: fa412071e4f5d44d44f9e365f4676f9df92456a2 # frozen: v1.30.1
3939
hooks:
4040
- id: zizmor
4141
args: [--fix]

‎manage_translation.py‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,19 @@
1313
# * warn_about_files_to_delete: lists files that are not available upstream
1414
# * generate_commit_msg: generates commit message with co-authors
1515

16-
from argparse import ArgumentParser
1716
import os
17+
import sys
18+
from argparse import ArgumentParser
19+
from collections.abc import Iterable
1820
from contextlib import chdir
1921
from dataclasses import dataclass
2022
from pathlib import Path
21-
from subprocess import call, run, CalledProcessError
22-
import sys
23+
from subprocess import CalledProcessError, call, run
2324
from tempfile import TemporaryDirectory
24-
from typing import Self, Iterable
25+
from typing import Self
2526
from warnings import warn
2627

27-
from polib import pofile, POFile
28+
from polib import POFile, pofile
2829
from transifex.api import transifex_api
2930

3031
LANGUAGE = 'pl'
@@ -38,7 +39,7 @@ def fetch():
3839
"""
3940
if (code := call('tx --version', shell=True)) != 0:
4041
sys.stderr.write('The Transifex client app is required.\n')
41-
exit(code)
42+
sys.exit(code)
4243
lang = LANGUAGE
4344
_call(f'tx pull -l {lang} --minimum-perc=1 --force --skip')
4445
for file in Path().rglob('*.po'):
@@ -47,7 +48,7 @@ def fetch():
4748

4849
def _call(command: str):
4950
if (return_code := call(command, shell=True)) != 0:
50-
exit(return_code)
51+
sys.exit(return_code)
5152

5253

5354
def recreate_tx_config():

0 commit comments

Comments
 (0)