Download .pre-commit-config.yaml from mathpluscode/CineMA: direct link, hf CLI and curl.
- Browser
- Download file 2.11 kB
-
https://huggingface.co/mathpluscode/CineMA/resolve/main/.pre-commit-config.yaml
- Command line
-
hf download hf://mathpluscode/CineMA/.pre-commit-config.yaml
-
curl -L -o .pre-commit-config.yaml https://huggingface.co/mathpluscode/CineMA/resolve/main/.pre-commit-config.yaml
2.11 kB
| default_language_version: | |
| python: python3 | |
| repos: | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v5.0.0 | |
| hooks: | |
| - id: check-added-large-files | |
| args: ["--maxkb=30000"] | |
| - id: check-ast | |
| - id: check-byte-order-marker | |
| - id: check-builtin-literals | |
| - id: check-case-conflict | |
| - id: check-docstring-first | |
| - id: check-merge-conflict | |
| - id: check-symlinks | |
| - id: check-toml | |
| - id: check-yaml | |
| - id: debug-statements | |
| - id: destroyed-symlinks | |
| - id: end-of-file-fixer | |
| - id: fix-byte-order-marker | |
| - id: mixed-line-ending | |
| - id: file-contents-sorter | |
| files: "envs/requirements*.txt" | |
| - id: trailing-whitespace | |
| - repo: https://github.com/astral-sh/ruff-pre-commit | |
| rev: v0.11.8 | |
| hooks: | |
| # run the linter | |
| - id: ruff | |
| args: [--fix] | |
| # run the formatter | |
| - id: ruff-format | |
| - repo: https://github.com/pre-commit/mirrors-mypy | |
| rev: v1.15.0 | |
| hooks: # https://github.com/python/mypy/issues/4008#issuecomment-582458665 | |
| - id: mypy | |
| name: mypy | |
| pass_filenames: false | |
| args: | |
| [ | |
| --strict-equality, | |
| --disallow-untyped-calls, | |
| --disallow-untyped-defs, | |
| --disallow-incomplete-defs, | |
| --disallow-any-generics, | |
| --check-untyped-defs, | |
| --disallow-untyped-decorators, | |
| --warn-redundant-casts, | |
| --warn-unused-ignores, | |
| --no-warn-no-return, | |
| --warn-unreachable, | |
| ] | |
| additional_dependencies: ["types-requests"] | |
| - repo: https://github.com/pre-commit/mirrors-prettier | |
| rev: v4.0.0-alpha.8 | |
| hooks: | |
| - id: prettier | |
| args: | |
| - --print-width=120 | |
| - --prose-wrap=always | |
| - --tab-width=2 | |
| - repo: https://github.com/codespell-project/codespell | |
| rev: v2.4.1 | |
| hooks: | |
| - id: codespell | |
| name: codespell | |
| description: Checks for common misspellings in text files. | |
| entry: codespell | |
| language: python | |
| types: [text] | |