Skip to content

Commit 7a2a4c0

Browse files
committed
Fix: pass lint and mypy
1 parent bc27882 commit 7a2a4c0

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ upload-pypi:
1212
python3 -m twine upload --repository pypi dist/*
1313

1414
lint:
15-
prospector
15+
echo "To lint this project, make sure that you have installed the core" >&2;
16+
ruff check .
1617

1718
mypy:
18-
mypy flamapy
19+
echo "To lint this project, make sure that you have installed the core" >&2;
20+
mypy -p flamapy
1921

2022
test:
2123
python -m pytest -sv

flamapy/core/models/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def pretty_str(self) -> str:
123123
if self.right is not None:
124124
res = f'{data}({left}, {right})'
125125
else:
126-
res = f'{data}({left})'
126+
res = f'{data}({left})' # type: ignore[unreachable]
127127
else: # binary operation
128128
res = f'{left} {data} {right}'
129129
return res

0 commit comments

Comments
 (0)