mirror of
https://github.com/andreinechaev/nvcc4jupyter.git
synced 2026-06-13 18:50:47 +05:30
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
default_language_version:
|
|
python: python3
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
# list of supported hooks: https://pre-commit.com/hooks.html
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-docstring-first
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
- id: detect-private-key
|
|
- id: check-executables-have-shebangs
|
|
- id: check-toml
|
|
- id: check-case-conflict
|
|
- id: check-added-large-files
|
|
|
|
# python code formatting
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.1.0
|
|
hooks:
|
|
- id: black
|
|
args: ["--config", "pyproject.toml"]
|
|
|
|
# python import sorting
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
args: ["--settings-path", "pyproject.toml"]
|
|
|
|
# python check (PEP8), programming errors and code complexity
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 6.0.0
|
|
hooks:
|
|
- id: flake8
|
|
args: ["--config", ".flake8"]
|