Skip to content

Commit

Permalink
flak8_nb changes
Browse files Browse the repository at this point in the history
adding config file to set line length at 80, however, also disabling it in pre-commit, as goog-config'd pylint together with black should be enough
  • Loading branch information
Daniel Sparing committed Nov 4, 2021
1 parent e401eb9 commit 262dbe8
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .flake8_nb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8_nb]
# ignore = E226,E302,E41
max-line-length = 80
# exclude = tests/*
# max-complexity = 10
52 changes: 51 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,58 @@
# Update this file:
# pre-commit autoupdate
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
- id: mixed-line-ending
#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.910
# hooks:
# - id: mypy
# args: [--ignore-missing-imports]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.9.3
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 21.10b0
hooks:
- id: black
args: [-l 80]
- id: black-jupyter
args: [-l 79]
args: [-l 80]
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/asottile/blacken-docs
rev: v1.11.0
hooks:
- id: blacken-docs
additional_dependencies: [black==20.8b1]
#- repo: https://github.com/tomcatling/black-nb
# rev: '0.6'
# hooks:
# - id: black-nb
# args: [-l 80]
#- repo: https://github.com/s-weigand/flake8-nb
# rev: v0.3.1
# hooks:
# - id: flake8-nb
- repo: https://github.com/pycqa/pylint
rev: v2.11.1
hooks:
- id: pylint

0 comments on commit 262dbe8

Please sign in to comment.