Skip to content

Commit

Permalink
Format and sort JSON, sort imports (#449)
Browse files Browse the repository at this point in the history
Also use flake8-bugbear and fix issues.
  • Loading branch information
sumpfork authored Jan 10, 2023
1 parent 46d6bb6 commit c342e65
Show file tree
Hide file tree
Showing 41 changed files with 14,543 additions and 14,521 deletions.
41 changes: 24 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,27 @@ default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
args: [--max-line-length=120, '--ignore=E203,W503']
# - id: pretty-format-json
# args: [--autofix, --no-sort-keys]
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, --indent=4]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args: [--max-line-length=120, "--ignore=E203,W503"]
additional_dependencies: [flake8-bugbear]
- repo: https://github.com/pycqa/isort
rev: 5.11.4
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files"]
Loading

0 comments on commit c342e65

Please sign in to comment.