Skip to content

Commit

Permalink
[lint] include examples in linting
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 10, 2023
1 parent b11c59c commit 0139294
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ lint: ruff mypy

ruff:
pip install -U ruff
ruff check tatsu test
ruff check tatsu test examples


mypy:
Expand Down
5 changes: 2 additions & 3 deletions examples/calc/calc.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# -*- coding: utf-8 -*-
import json
from pprint import pprint

from codegen import PostfixCodeGenerator # pylint: disable= E0401 # noqa

import tatsu
from tatsu.ast import AST
from tatsu.walkers import NodeWalker

from codegen import PostfixCodeGenerator # pylint: disable= E0401 # noqa


def simple_parse():
grammar = open('grammars/calc_cut.ebnf').read()
Expand Down
3 changes: 1 addition & 2 deletions examples/calc/codegen.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import sys

from tatsu.mixins.indent import IndentPrintMixin
from tatsu.model import Node
from tatsu.walkers import NodeWalker
from tatsu.mixins.indent import IndentPrintMixin


THIS_MODULE = sys.modules[__name__]

Expand Down

0 comments on commit 0139294

Please sign in to comment.