Skip to content

Commit 88d4bdd

Browse files
authored
Merge pull request #3065 from minrk/declare-lint
satisfy flake8 in jupyterhub_config.py
2 parents dc6d8be + 0a84ecb commit 88d4bdd

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.flake8

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[flake8]
2+
# Ignore style and complexity
3+
# E: style errors
4+
# W: style warnings
5+
# C: complexity
6+
# D: docstring warnings (unused pydocstyle extension)
7+
ignore = E, C, W, D

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@ repos:
6969
rev: "6.0.0"
7070
hooks:
7171
- id: flake8
72-
# Ignore style and complexity
73-
# E: style errors
74-
# W: style warnings
75-
# C: complexity
76-
#
77-
args:
78-
- --ignore=E,C,W
79-
- --builtins=c
8072

8173
# pre-commit.ci config reference: https://pre-commit.ci/#configuration
8274
ci:

jupyterhub/files/hub/jupyterhub_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# load the config object (satisfies linters)
2+
c = get_config() # noqa
3+
14
import glob
25
import os
36
import re

0 commit comments

Comments
 (0)