added precommit

pull/855/head
Dov Benyomin Sohacheski 3 years ago
parent a71e447dc0
commit 101b732ae0

@ -0,0 +1,40 @@
repos:
# - repo: https://github.com/pycqa/isort
# rev: 5.12.0
# hooks:
# - id: isort
# name: Run isort to sort imports in Python files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
args: [ --write-changes ]
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: Run black (python formatter)
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.198
hooks:
- id: ruff
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.991
# hooks:
# - id: mypy
# args: [ . ]
# pass_filenames: false

@ -22,6 +22,7 @@ pylint = "^2.7"
rope = "^0.14.0" rope = "^0.14.0"
isort = "^4.3" isort = "^4.3"
black = "^22.12.0" black = "^22.12.0"
pre-commit = "^3.0.4"
[tool.black] [tool.black]
line-length = 120 line-length = 120

Loading…
Cancel
Save