Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30ddb75

Browse files
committed
remove powrap from pre-commit since it is very problematic
1 parent 6bb9143 commit 30ddb75

File tree

7 files changed

+14
-109
lines changed

7 files changed

+14
-109
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,24 @@ repos:
33
hooks:
44
- id: style-print
55
name: ""
6-
entry: "style-print 'This is highly experimental, please report any issues at: https://github.com/python/python-docs-tr/issues' 'rUBI{y}'"
6+
entry: "style-print 'Please report any issues at: https://github.com/python/python-docs-tr/issues' 'rUBI{y}'"
77
language: python
88
additional_dependencies: ["style-print"]
99
pass_filenames: false
1010
verbose: true
1111

12-
- repo: local
13-
hooks:
14-
- id: gettext
15-
name: Install gettext
16-
entry: python .pre-commit-scripts/install_gettext.py
17-
language: system
18-
verbose: true
19-
pass_filenames: false
20-
2112
- id: lint
2213
name: Run sphinx-lint on .po files
2314
entry: sphinx-lint
2415
language: python
2516
additional_dependencies: ["sphinx-lint"]
2617
files: \.po$
2718

28-
- id: powrap
29-
name: Run powrap on .po files
30-
entry: python .pre-commit-scripts/run_powrap.py
31-
language: system
32-
files: \.po$
33-
34-
# - repo: https://github.com/egeakman/powrap
35-
# rev: v1.0.2
36-
# hooks:
37-
# - id: powrap
38-
# name: Run powrap on .po files
39-
# files: \.po$
19+
- repo: https://github.com/pycqa/isort
20+
rev: 5.12.0
21+
hooks:
22+
- id: isort
23+
name: isort (python)
4024

4125
- repo: https://github.com/psf/black
4226
rev: 23.1.0

.pre-commit-scripts/install_gettext.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

.pre-commit-scripts/run_powrap.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

merge.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
This script is run automatically by the GitHub Actions workflow every first day of the month.
77
"""
88

9+
import argparse
910
import re
1011
import shutil
11-
import argparse
1212
import subprocess
1313
from pathlib import Path
1414
from subprocess import PIPE
15+
1516
from tqdm import tqdm
1617

1718

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ tqdm
44
pre-commit
55
polib
66
deep_translator
7-
requests

scripts/format_check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import collections
2-
import os
31
import argparse
2+
import collections
43
import contextlib
54
import glob
6-
import polib
5+
import os
76
from pprint import pprint
87

8+
import polib
99

1010
parser = argparse.ArgumentParser()
1111
parser.add_argument("subject", nargs="?", default=None, help="Subject to check (file or directory)")

scripts/translate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import os
22
import re
33
import sys
4+
from argparse import ArgumentParser
5+
from typing import Dict, Tuple
6+
47
import polib
58
from deep_translator import DeeplTranslator, GoogleTranslator
6-
from typing import Dict, Tuple
7-
from argparse import ArgumentParser
89

910
parser = ArgumentParser()
1011
parser.add_argument("filename", help="File to translate")

0 commit comments

Comments
 (0)