Skip to content

Commit

Permalink
Create .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Senatorov <[email protected]>
  • Loading branch information
ruslansenatorov authored Apr 24, 2024
1 parent bffd851 commit 2581780
Showing 1 changed file with 131 additions and 0 deletions.
131 changes: 131 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
repos:
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.5
hooks:
- id: nbqa-black
name: nbqa-black
description: Run 'black' on a Jupyter Notebook
entry: nbqa black
language: python
require_serial: true
types_or: [jupyter, markdown]
additional_dependencies: [black]
- id: nbqa-isort
name: nbqa-isort
description: Run 'isort' on a Jupyter Notebook
entry: nbqa isort
language: python
require_serial: true
types_or: [jupyter, markdown]
additional_dependencies: [isort]
- id: nbqa-mypy
name: nbqa-mypy
description: Run 'mypy' on a Jupyter Notebook
entry: nbqa mypy
language: python
require_serial: true
types_or: [jupyter, markdown]
additional_dependencies: [mypy]
args: ["--ignore-missing-imports"]
- id: nbqa-pylint
name: nbqa-pylint
description: Run 'pylint' on a Jupyter Notebook
entry: nbqa pylint
language: python
require_serial: true
types_or: [jupyter, markdown]
additional_dependencies: [pylint]
args: ["--max-line-length=79"]
- id: nbqa-pyupgrade
name: nbqa-pyupgrade
description: Run 'pyupgrade' on a Jupyter Notebook
entry: nbqa pyupgrade
language: python
require_serial: true
types_or: [jupyter, markdown]
additional_dependencies: [pyupgrade]
- id: nbqa-yapf
name: nbqa-yapf
description: Run 'yapf' on a Jupyter Notebook
entry: nbqa yapf --in-place
language: python
require_serial: true
types_or: [jupyter, markdown]
additional_dependencies: [yapf]
- id: nbqa-autopep8
name: nbqa-autopep8
description: Run 'autopep8' on a Jupyter Notebook
entry: nbqa autopep8 -i
language: python
require_serial: true
types_or: [jupyter, markdown]
additional_dependencies: [autopep8]
- id: nbqa-pydocstyle
name: nbqa-pydocstyle
description: Run 'pydocstyle' on a Jupyter Notebook
entry: nbqa pydocstyle
language: python
require_serial: true
types_or: [jupyter, markdown]
additional_dependencies: [pydocstyle]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: double-quote-string-fixer
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.1.0
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/psf/black.git
rev: 24.4.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.2.0
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
args: ["--ignore-missing-imports"]
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.3.1
hooks:
- id: pylint
name: pylint
entry: pylint
language: python
types: [python]
args: [--max-line-length=79]
additional_dependencies: [pylint]

0 comments on commit 2581780

Please sign in to comment.