Skip to content

Commit

Permalink
reorder pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Mar 25, 2022
1 parent 26222dc commit 3c9e1a3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
33 changes: 25 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: double-quote-string-fixer
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.0
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.0.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-scss-lint
rev: v0.59.0
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.1
hooks:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.6.0
hooks:
- id: scss-lint
- id: autopep8
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
2 changes: 2 additions & 0 deletions get-geckodriver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
from __future__ import annotations

import argparse
import io
import tarfile
Expand Down
4 changes: 3 additions & 1 deletion make-screenshot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
from __future__ import annotations

import argparse
import contextlib
import os.path
Expand Down Expand Up @@ -45,7 +47,7 @@ def main():
f'window.open('
f' "file://{filepath}", "test",'
f' "innerWidth={width},innerHeight={height}"'
f');\n'
f');\n',
)

# Switch to our new window
Expand Down

0 comments on commit 3c9e1a3

Please sign in to comment.