@@ -78,8 +78,6 @@ def format(session):
78
78
session .run ("black" , * SOURCE_FILES )
79
79
session .run ("python" , "utils/license-headers.py" , "fix" , * SOURCE_FILES )
80
80
81
- lint (session )
82
-
83
81
84
82
@nox .session ()
85
83
def lint (session ):
@@ -106,8 +104,7 @@ def lint(session):
106
104
107
105
session .install (".[async,requests,orjson,pyarrow,vectorstore_mmr]" , env = INSTALL_ENV )
108
106
109
- # Run mypy on the package and then the type examples separately for
110
- # the two different mypy use-cases, ourselves and our users.
107
+ # Run mypy on the package, the type examples and the DSL examples
111
108
session .run (
112
109
"mypy" ,
113
110
"--strict" ,
@@ -116,28 +113,7 @@ def lint(session):
116
113
"--show-error-codes" ,
117
114
"--enable-error-code=ignore-without-code" ,
118
115
"elasticsearch/" ,
119
- )
120
- session .run (
121
- "mypy" ,
122
- "--strict" ,
123
- "--show-error-codes" ,
124
- "test_elasticsearch/test_types/sync_types.py" ,
125
- )
126
- session .run (
127
- "mypy" ,
128
- "--strict" ,
129
- "--show-error-codes" ,
130
- "test_elasticsearch/test_types/async_types.py" ,
131
- )
132
-
133
- # check typing on the DSL examples
134
- session .run (
135
- "mypy" ,
136
- "--strict" ,
137
- "--implicit-reexport" ,
138
- "--explicit-package-bases" ,
139
- "--show-error-codes" ,
140
- "--enable-error-code=ignore-without-code" ,
116
+ "test_elasticsearch/test_types/" ,
141
117
"examples/dsl/" ,
142
118
)
143
119
@@ -151,11 +127,6 @@ def lint(session):
151
127
"--explicit-package-bases" ,
152
128
"--show-error-codes" ,
153
129
"elasticsearch/" ,
154
- )
155
- session .run (
156
- "mypy" ,
157
- "--strict" ,
158
- "--show-error-codes" ,
159
130
"test_elasticsearch/test_types/sync_types.py" ,
160
131
)
161
132
0 commit comments