Skip to content

Commit

Permalink
black config
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesdelbeke committed Nov 10, 2022
1 parent 98ccda2 commit a112b37
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Pre-commit setup
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
# Ensures that a file is either empty, or ends with one newline.
- id: end-of-file-fixer

# Remove trailing whitespace
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]

# Code style and formatting
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
args: [
--line-length, "120",
]

# # Linting and PEP-8
# - repo: https://github.com/pycqa/flake8
# rev: 5.0.4
# hooks:
# - id: flake8
# args: ["--ignore=D100,D400,E501", "--exclude=*test*"]
# additional_dependencies:
# - flake8-docstrings~=1.6.0

# # Security and Vulnerability checks
# - repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
# rev: v1.0.6
# hooks:
# - id: python-bandit-vulnerability-check
# args: [--skip, "B101", --recursive, clumper]

0 comments on commit a112b37

Please sign in to comment.