Skip to content

Commit 6f29abe

Browse files
authored
Merge pull request #315 from fortran-lang/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 6990985 + 22cf8d5 commit 6f29abe

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
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

fortls/parsers/internal/ast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

fortls/parsers/internal/scope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
):

0 commit comments

Comments
 (0)