Skip to content
Browse files

Add `.pre-commit-config.yaml`

This adds a configuration file for to be used
with Raiden. It respects all linting/styling preferences shared in the
repository, and can be used voluntarily. If installed (see header of
`.pre-commit-config.yaml`), every commit will be ensured to pass CI-side
  • Loading branch information...
konradkonrad authored and hackaugusto committed Jun 18, 2019
1 parent 179ca4e commit d2f661862ee07cef10ba5dff6ed5fff1143998f3
Showing with 46 additions and 0 deletions.
  1. +46 −0 .pre-commit-config.yaml
@@ -0,0 +1,46 @@
# How to use this:
# 1) Install `pip install --user pre-commit`
# 2) Execute `pre-commit install -c .pre-commit-config.yaml`
# 3) Every commit now goes through linting, mypy, etc.
# 4) If you ever need to commit without passing checks, run `git commit --no-verify`
exclude: '^$'
fail_fast: false
- repo: git://
rev: v4.3.20
- id: isort
args: ["--ignore-whitespace", "--settings-path", "./", "--recursive"]
- repo:
rev: 19.3b0
- id: black
language_version: python3.7

- repo: local
- id: pylint
name: pylint
entry: python -m pylint.__main__ --rcfile pylintrc raiden
language: system
types: [python]
- repo:
rev: v2.2.2
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: detect-private-key
# - id: double-quote-string-fixer
- id: end-of-file-fixer
- id: flake8
args: ["--config=setup.cfg"]
additional_dependencies: ["flake8-bugbear==18.8.0", "flake8-tuple", "readme-renderer",]
- id: mixed-line-ending
- id: trailing-whitespace

0 comments on commit d2f6618

Please sign in to comment.
You can’t perform that action at this time.