Skip to content

Commit

Permalink
Merge pull request #3065 from minrk/declare-lint
Browse files Browse the repository at this point in the history
satisfy flake8 in jupyterhub_config.py
  • Loading branch information
consideRatio committed Mar 22, 2023
2 parents dc6d8be + 0a84ecb commit 88d4bdd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
# Ignore style and complexity
# E: style errors
# W: style warnings
# C: complexity
# D: docstring warnings (unused pydocstyle extension)
ignore = E, C, W, D
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ repos:
rev: "6.0.0"
hooks:
- id: flake8
# Ignore style and complexity
# E: style errors
# W: style warnings
# C: complexity
#
args:
- --ignore=E,C,W
- --builtins=c

# pre-commit.ci config reference: https://pre-commit.ci/#configuration
ci:
Expand Down
3 changes: 3 additions & 0 deletions jupyterhub/files/hub/jupyterhub_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# load the config object (satisfies linters)
c = get_config() # noqa

import glob
import os
import re
Expand Down

0 comments on commit 88d4bdd

Please sign in to comment.