Skip to content

Commit 8bdc9d2

Browse files
authored
Merge pull request #5 from AlimU11/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents bbdd7dc + 30f2d28 commit 8bdc9d2

File tree

25 files changed

+4
-29
lines changed

25 files changed

+4
-29
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: requirements-txt-fixer
1616

1717
- repo: https://github.com/codespell-project/codespell
18-
rev: v2.2.2
18+
rev: v2.2.5
1919
hooks:
2020
- id: codespell
2121
exclude: main.spec
@@ -32,7 +32,7 @@ repos:
3232
name: isort (python)
3333

3434
- repo: https://github.com/PyCQA/autoflake
35-
rev: v2.0.0
35+
rev: v2.2.0
3636
hooks:
3737
- id: autoflake
3838
name: autoflake
@@ -48,14 +48,14 @@ repos:
4848
]
4949

5050
- repo: https://github.com/asottile/add-trailing-comma
51-
rev: v2.4.0
51+
rev: v2.5.1
5252
hooks:
5353
- id: add-trailing-comma
5454
args:
5555
- --py36-plus
5656

5757
- repo: https://github.com/psf/black
58-
rev: 22.12.0
58+
rev: 23.3.0
5959
hooks:
6060
- id: black
6161
args: [

base/Parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ def statement(self):
199199
node = self.compound_statement()
200200

201201
elif self.current_token.type == TokenType.ID or Token.RESERVED_PROCEDURES.get(self.current_token.value):
202-
203202
if self.lexer.current_char == '(':
204203
node = self.proccall_statement()
205204

main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def update_scope_table(self):
7272

7373
@pyqtSlot()
7474
def interpret(self):
75-
7675
program = self.ui.plainTextEdit.toPlainText()
7776
self.ui.output.setText('')
7877
self.ui.output.setStyleSheet('color: black;')
@@ -102,7 +101,6 @@ def interpret(self):
102101
self.ui.output.append(out)
103102

104103
except Exception as e:
105-
106104
self.ui.output.setText(str(e))
107105
self.ui.output.setStyleSheet('color: red;')
108106

part 10 - complete program/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def get_next_token(self):
7373
apart into tokens. One token at a time.
7474
"""
7575
while self.current_char is not None:
76-
7776
if self.current_char.isspace():
7877
self.skip_whitespace()
7978
continue

part 11 - symbol tables/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def get_next_token(self):
7171
apart into tokens. One token at a time.
7272
"""
7373
while self.current_char is not None:
74-
7574
if self.current_char.isspace():
7675
self.skip_whitespace()
7776
continue

part 12 - procedures/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def get_next_token(self):
7171
apart into tokens. One token at a time.
7272
"""
7373
while self.current_char is not None:
74-
7574
if self.current_char.isspace():
7675
self.skip_whitespace()
7776
continue

part 13 - semantic analysis/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def get_next_token(self):
7171
apart into tokens. One token at a time.
7272
"""
7373
while self.current_char is not None:
74-
7574
if self.current_char.isspace():
7675
self.skip_whitespace()
7776
continue

part 14 - nested scopes/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def get_next_token(self):
7171
apart into tokens. One token at a time.
7272
"""
7373
while self.current_char is not None:
74-
7574
if self.current_char.isspace():
7675
self.skip_whitespace()
7776
continue

part 14 - nested scopes/practice/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def get_next_token(self):
7171
apart into tokens. One token at a time.
7272
"""
7373
while self.current_char is not None:
74-
7574
if self.current_char.isspace():
7675
self.skip_whitespace()
7776
continue

part 16 - recognizing procedure calls/lesson/Parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ def statement(self):
199199
node = self.compound_statement()
200200

201201
elif self.current_token.type == TokenType.ID:
202-
203202
if self.lexer.current_char == '(':
204203
node = self.proccall_statement()
205204

0 commit comments

Comments
 (0)