Commit e9b18e9 1 parent a55bc58 commit e9b18e9 Copy full SHA for e9b18e9
File tree 4 files changed +10
-14
lines changed
tests/services/events/mockextension
4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 34
34
- id : black
35
35
36
36
- repo : https://github.com/charliermarsh/ruff-pre-commit
37
- rev : v0.0.165
37
+ rev : v0.0.177
38
38
hooks :
39
39
- id : ruff
40
40
args : ["--fix"]
Original file line number Diff line number Diff line change 16
16
17
17
from .handler import ExtensionHandlerMixin
18
18
19
-
20
19
# -----------------------------------------------------------------------------
21
20
# Util functions and classes.
22
21
# -----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -64,11 +64,6 @@ test = [
64
64
" requests" ,
65
65
" pre-commit"
66
66
]
67
- lint = [
68
- " black>=22.6.0" ,
69
- " mdformat>0.7" ,
70
- " ruff>=0.0.156" ,
71
- ]
72
67
docs = [
73
68
# needed because m2r uses deprecated APIs
74
69
# m2r is depended on by sphinxcontrib-openapi
@@ -88,9 +83,6 @@ docs = [
88
83
" sphinxemoji" ,
89
84
" tornado" ,
90
85
]
91
- typing = [
92
- " mypy>=0.990"
93
- ]
94
86
95
87
[project .scripts ]
96
88
jupyter-server = " jupyter_server.serverapp:main"
@@ -107,7 +99,8 @@ test = "python -m pytest -vv {args}"
107
99
nowarn = " test -W default {args}"
108
100
109
101
[tool .hatch .envs .typing ]
110
- features = [" test" , " typing" ]
102
+ features = [" test" ]
103
+ dependencies = [ " mypy>=0.990" ]
111
104
[tool .hatch .envs .typing .scripts ]
112
105
test = " mypy --install-types --non-interactive {args:.}"
113
106
@@ -120,7 +113,12 @@ nowarn = "test -W default {args}"
120
113
integration = " test --integration_tests=true {args}"
121
114
122
115
[tool .hatch .envs .lint ]
123
- features = [" lint" ]
116
+ detached = true
117
+ dependencies = [
118
+ " black>=22.10.0" ,
119
+ " mdformat>0.7" ,
120
+ " ruff==0.0.177" ,
121
+ ]
124
122
[tool .hatch .envs .lint .scripts ]
125
123
style = [
126
124
" ruff {args:.}" ,
@@ -174,7 +172,7 @@ ignore = [
174
172
# Line too long
175
173
" E501" ,
176
174
# Relative imports are banned
177
- " I252 " ,
175
+ " TID252 " ,
178
176
# Boolean ... in function definition
179
177
" FBT001" ,
180
178
" FBT002" ,
Original file line number Diff line number Diff line change 1
1
from .mock_extension import _load_jupyter_server_extension # noqa: F401
2
2
3
-
4
3
# Function that makes these extensions discoverable
5
4
# by the test functions.
6
5
You can’t perform that action at this time.
0 commit comments