Skip to content

Commit 0021a6a

Browse files
authored
Merge pull request #892 from blink1073/black-formatting
2 parents 59439b1 + ca42841 commit 0021a6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2502
-2223
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,6 @@ defaults:
1414
shell: bash
1515

1616
jobs:
17-
# Run "pre-commit run --all-files"
18-
pre-commit:
19-
runs-on: ubuntu-20.04
20-
timeout-minutes: 2
21-
22-
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-python@v2
25-
with:
26-
python-version: 3.8
27-
28-
# ref: https://github.com/pre-commit/action
29-
- uses: pre-commit/[email protected]
30-
- name: Help message if pre-commit fail
31-
if: ${{ failure() }}
32-
run: |
33-
echo "You can install pre-commit hooks to automatically run formatting"
34-
echo "on each commit with:"
35-
echo " pre-commit install"
36-
echo "or you can run by hand on staged files with"
37-
echo " pre-commit run"
38-
echo "or after-the-fact on already committed files with"
39-
echo " pre-commit run --all-files"
40-
4117
build:
4218
runs-on: ${{ matrix.os }}
4319
strategy:

.pre-commit-config.yaml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ repos:
1616
- id: check-builtin-literals
1717
- id: trailing-whitespace
1818

19-
# - repo: https://github.com/psf/black
20-
# rev: 22.1.0
21-
# hooks:
22-
# - id: black
23-
# args: ["--line-length", "100"]
19+
- repo: https://github.com/psf/black
20+
rev: 22.3.0
21+
hooks:
22+
- id: black
23+
args: ["--line-length", "100"]
2424

25-
# - repo: https://github.com/PyCQA/isort
26-
# rev: 5.10.1
27-
# hooks:
28-
# - id: isort
29-
# files: \.py$
30-
# args: [--profile=black]
25+
- repo: https://github.com/PyCQA/isort
26+
rev: 5.10.1
27+
hooks:
28+
- id: isort
29+
files: \.py$
30+
args: [--profile=black]
3131

3232
- repo: https://github.com/pre-commit/mirrors-prettier
33-
rev: v2.5.1
33+
rev: v2.6.1
3434
hooks:
3535
- id: prettier
3636

@@ -46,15 +46,6 @@ repos:
4646
# ]
4747

4848
- repo: https://github.com/pre-commit/mirrors-eslint
49-
rev: v8.8.0
49+
rev: v8.12.0
5050
hooks:
5151
- id: eslint
52-
53-
- repo: https://github.com/sirosen/check-jsonschema
54-
rev: 0.10.2
55-
hooks:
56-
- id: check-jsonschema
57-
name: "Check GitHub Workflows"
58-
files: ^\.github/workflows/
59-
types: [yaml]
60-
args: ["--schemafile", "https://json.schemastore.org/github-workflow"]

0 commit comments

Comments
 (0)