mirror of
https://github.com/andreinechaev/nvcc4jupyter.git
synced 2026-06-13 18:50:47 +05:30
54 lines
1.3 KiB
YAML
54 lines
1.3 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.12.1
|
|
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: 7.0.0
|
|
hooks:
|
|
- id: flake8
|
|
args: ["--config", ".flake8"]
|
|
|
|
# pylint check
|
|
- repo: https://github.com/pycqa/pylint
|
|
rev: v3.0.3
|
|
hooks:
|
|
- id: pylint
|
|
args: ["--rcfile", "pyproject.toml"]
|
|
|
|
- repo: https://github.com/PyCQA/bandit
|
|
rev: 1.7.6
|
|
hooks:
|
|
- id: bandit
|
|
args: ["-c", "pyproject.toml"]
|
|
additional_dependencies: ["bandit[toml]"]
|