diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5955d0d..f9428d8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,15 +1,32 @@ +files: _shared_utils repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.4.0 hooks: - - id: check-added-large-files - - id: end-of-file-fixer - - id: mixed-line-ending - - id: requirements-txt-fixer - id: trailing-whitespace - args: [--markdown-linebreak-ext=md] - - - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.37.0 + - id: end-of-file-fixer + - id: check-yaml + args: ["--unsafe"] + - id: check-added-large-files + - repo: https://github.com/pycqa/flake8 + rev: 6.0.0 + hooks: + - id: flake8 + args: ["--ignore=E501,W503,F403,F405,E711,E712,E231,E702"] + # E711: comparison to None should be 'if cond is not None:' (siuba filtering requires we use != None and not is not) + # E712: line too long and line before binary operator (black is ok with these), assign lambda expression OK, comparison to True with is (siuba uses ==) + # E231: missing whitespace after colon (we don't want white space when setting gs://) + # E702: multiple statements on one line (semicolon) + types: + - python + files: _shared_utils + - repo: https://github.com/psf/black + rev: 23.1.0 + hooks: + - id: black + args: ["--line-length", "120"] + - repo: https://github.com/pycqa/isort + rev: 5.12.0 hooks: - - id: markdownlint + - id: isort + args: ["--profile", "black", "--filter-files"]