Spaces:
Sleeping
Sleeping
| repos: | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v4.4.0 | |
| hooks: | |
| - id: trailing-whitespace | |
| - id: check-added-large-files | |
| name: Check for added large files | |
| entry: check-added-large-files | |
| - id: check-toml | |
| name: Check Toml | |
| entry: check-toml | |
| types: [toml] | |
| - id: check-yaml | |
| name: Check Yaml | |
| entry: check-yaml | |
| types: [yaml] | |
| - id: end-of-file-fixer | |
| name: Fix End of Files | |
| entry: end-of-file-fixer | |
| types: [text] | |
| stages: [commit, push, manual] | |
| - id: trailing-whitespace | |
| name: Trim Trailing Whitespace | |
| entry: trailing-whitespace-fixer | |
| types: [text] | |
| stages: [commit, push, manual] | |
| # - repo: https://github.com/mwouts/jupytext | |
| # rev: v1.14.6 | |
| # hooks: | |
| # - id: jupytext | |
| # name: jupytext (sync existing Notebooks) | |
| # entry: jupytext | |
| # language: python | |
| # args: [--sync, --pipe, black, --pre-commit] | |
| # pass_filenames: false | |
| # additional_dependencies: | |
| # - black==23.3.0 | |
| - repo: https://github.com/psf/black | |
| rev: 23.3.0 | |
| hooks: | |
| - id: black | |
| name: black | |
| entry: black | |
| types: [python] | |
| require_serial: true | |
| - repo: https://github.com/pycqa/isort | |
| rev: 5.12.0 | |
| hooks: | |
| - id: isort | |
| name: isort | |
| entry: isort | |
| require_serial: true | |
| language: python | |
| types_or: [cython, pyi, python] | |
| args: ["--profile", "black", "--filter-files"] | |
| - repo: https://github.com/pycqa/flake8 | |
| rev: "6.0.0" | |
| hooks: | |
| - id: flake8 | |
| name: flake8 | |
| entry: flake8 | |
| types: [python] | |
| require_serial: true | |
| exclude: "jupyter/scripts" | |
| - repo: https://github.com/asottile/pyupgrade | |
| rev: v3.7.0 | |
| hooks: | |
| - id: pyupgrade | |
| name: pyupgrade | |
| description: Automatically upgrade syntax for newer versions. | |
| entry: pyupgrade | |
| types: [python] | |
| args: [--py39-plus] | |
| - repo: https://github.com/commitizen-tools/commitizen | |
| rev: 3.5.2 | |
| hooks: | |
| - id: commitizen | |
| - id: commitizen-branch | |
| stages: [push] | |
| - repo: https://github.com/python-poetry/poetry | |
| rev: '1.5.0' | |
| hooks: | |
| - id: poetry-check | |
| # - id: poetry-lock | |
| # - id: poetry-export | |
| # files: "pyproject.toml,requirements.txt" | |
| # args: ["-f", "requirements.txt", "-o", "requirements.txt", "--without-hashes", "--only=main"] | |