Skip to content

Commit

Permalink
fix: move flake8 plugins from nitpick to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Jun 19, 2019
1 parent 66e708a commit 7913e19
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 230 deletions.
26 changes: 16 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@ repos:
- id: python-no-eval
- id: python-no-log-warn
- id: rst-backticks
- repo: local
hooks:
# Run flake8 locally with nitpick and all the plugins configured in pyproject.toml
- id: nitpick-local
name: Nitpick (Locally on itself)
entry: flake8 --select=NIP
language: python
types: [python]
always_run: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: flake8
additional_dependencies: [flake8-blind-except, flake8-bugbear, flake8-comprehensions,
flake8-debugger, flake8-docstrings, flake8-isort, flake8-mypy, flake8-polyfill,
flake8-pytest, flake8-quotes, yesqa]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.701
hooks:
Expand All @@ -47,13 +63,3 @@ repos:
rev: 0.6.0
hooks:
- id: bashate
- repo: local
hooks:
# Run flake8 locally with nitpick and all the plugins configured in pyproject.toml
- id: nitpick-local
name: Nitpick (Local)
description: Check only nitpick errors (NIP) and ignore other flake8 plugins
entry: flake8
language: python
types: [python]
always_run: true
13 changes: 3 additions & 10 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
- id: nitpick-all
name: Nitpick (All)
description: Run nitpick together with several other flake8 plugins (check pyproject.toml)
entry: flake8
language: python
types: [python]
always_run: true
- id: nitpick-only
name: Nitpick (Only)
description: Check only nitpick errors (NIP) and ignore other flake8 plugins
- id: nitpick
name: Nitpick
description: Run the nitpick checkers
entry: flake8 --select=NIP
language: python
types: [python]
Expand Down
Loading

0 comments on commit 7913e19

Please sign in to comment.