Skip to content
Snippets Groups Projects
Commit 03051ef6 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Add pre-comit

parent e93f285a
No related branches found
No related tags found
1 merge request!60Add pre-commit
[flake8]
max-line-length = 80
ignore = E501,W503,E302,E402,E203
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
args: [--settings-path, "pyproject.toml"]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: check-added-large-files
- id: check-yaml
exclude: .*/meta.yaml
[build-system]
requires = ["setuptools", "wheel", "bob.extension"]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "wheel", "bob.extension"]
build-backend = "setuptools.build_meta"
[tool.isort]
profile = "black"
line_length = 80
order_by_type = true
lines_between_types = 1
[tool.black]
line-length = 80
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment