File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22# See https://pre-commit.com/hooks.html for more hooks
33repos :
44- repo : https://github.com/pre-commit/pre-commit-hooks
5- rev : v4.4 .0
5+ rev : v4.6 .0
66 hooks :
77 - id : trailing-whitespace
88 - id : end-of-file-fixer
99 - id : check-yaml
1010 - id : check-added-large-files
1111 args : ['--maxkb=2000']
1212- repo : https://github.com/PyCQA/flake8
13- rev : 6 .0.0
13+ rev : 7 .0.0
1414 hooks :
1515 - id : flake8
1616- repo : https://github.com/asottile/pyupgrade
17- rev : v3.9.0
17+ rev : v3.15.2
1818 hooks :
1919 - id : pyupgrade
2020- repo : https://github.com/pycqa/isort
21- rev : 5.12.0
21+ rev : 5.13.2
2222 hooks :
2323 - id : isort
2424 name : isort (python)
2525- repo : https://github.com/psf/black
26- rev : 23.7.0
26+ rev : 24.4.2
2727 hooks :
2828 - id : black
Original file line number Diff line number Diff line change @@ -192,9 +192,9 @@ def get_scopes(self, line_number: int = None):
192192 scope_list = []
193193 for scope in self .scope_list :
194194 if (line_number >= scope .sline ) and (line_number <= scope .eline ):
195- if type (scope .parent ) == Interface :
195+ if type (scope .parent ) is Interface :
196196 for use_stmnt in scope .use :
197- if type (use_stmnt ) != Import :
197+ if type (use_stmnt ) is not Import :
198198 continue
199199 # Exclude the parent and all other scopes
200200 if use_stmnt .import_type == ImportTypes .NONE :
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ def check_use(self, obj_tree):
216216 last_use_line = - 1
217217 for use_stmnt in self .use :
218218 last_use_line = max (last_use_line , use_stmnt .line_number )
219- if type (use_stmnt ) == Import :
219+ if type (use_stmnt ) is Import :
220220 if (self .parent is None ) or (
221221 self .parent .get_type () != INTERFACE_TYPE_ID
222222 ):
You can’t perform that action at this time.
0 commit comments