Skip to content

Commit 97ee9c3

Browse files
committed
update config
Signed-off-by: Sun, Xuehao <[email protected]>
1 parent eff170e commit 97ee9c3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ repos:
6969
rev: 5.12.0
7070
hooks:
7171
- id: isort
72+
exclude: (.*\__init__.py)$
7273

7374
- repo: https://github.com/PyCQA/docformatter
7475
rev: v1.7.5

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ select = ["E", "F"]
2828
ignore = [
2929
"E402", # Module level import not at top of file
3030
"E501", # Line too long (121 > 120 characters)
31-
"E741", # Do not use variables named ‘l’, ‘O’, or ‘I’
3231
"E721", # Do not compare types, use isinstance()
3332
"E722", # Do not use bare except
33+
"E741", # Do not use variables named ‘l’, ‘O’, or ‘I’
34+
"F401", # {name} imported but unused
3435
"F403", # from {name} import * used; unable to detect undefined names
3536
"F405", # {name} may be undefined, or defined from star imports
3637
"F841", # Local variable is assigned to but never used{name}

0 commit comments

Comments
 (0)