Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
- limit line columns length to 85
- install lark-parser for pylint to resolve modules
  • Loading branch information
kaushikcfd committed Jan 4, 2021
1 parent 52599f8 commit c2f9057
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
python-version: '3.x'
- name: "Main Script"
run: |
EXTRA_INSTALL="pymbolic"
EXTRA_INSTALL="pymbolic lark-parser"
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh
. ./prepare-and-run-pylint.sh "$(basename $GITHUB_REPOSITORY)" test/test_*.py
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Mypy:

Pylint:
script:
- EXTRA_INSTALL="pymbolic"
- EXTRA_INSTALL="pymbolic lark-parser"
- py_version=3
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh
- . ./prepare-and-run-pylint.sh "$CI_PROJECT_NAME" test/test_*.py
Expand Down
5 changes: 3 additions & 2 deletions pytools/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
__doc__ = """
Tag Interface
---------------
===============
.. autoclass:: Tag
.. autoclass:: UniqueTag
Expand Down Expand Up @@ -275,7 +275,8 @@ def parse_tag(tag_text, shortcuts={}):
import inspect
caller_globals = inspect.currentframe().f_back.f_globals
parser = Lark(TAG_GRAMMAR, start="tag")
tag = ToPythonObjectMapper(shortcuts, caller_globals).transform(parser.parse(tag_text))
tag = ToPythonObjectMapper(shortcuts, caller_globals).transform(
parser.parse(tag_text))

return tag

Expand Down

0 comments on commit c2f9057

Please sign in to comment.