Skip to content

Commit

Permalink
precommit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeStanleySEL committed Apr 19, 2022
1 parent 7dc17cf commit b4c2bdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"python.linting.flake8Enabled": true,
"python.linting.enabled": true
}
5 changes: 4 additions & 1 deletion blark/tests/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from ..parse import parse, summarize, parse_source_code
from ..parse import parse, parse_source_code, summarize
from .conftest import get_grammar

TEST_PATH = pathlib.Path(__file__).parent
Expand All @@ -16,10 +16,12 @@

sources = list(str(path) for path in TEST_PATH.glob("**/*.st"))


@pytest.fixture(params=pous)
def pou_filename(request):
return request.param


@pytest.fixture(params=sources)
def source_filename(request):
return request.param
Expand All @@ -38,6 +40,7 @@ def test_parsing_tcpous(pou_filename):
raise result
print(summarize(result))


def test_parsing_source(source_filename):
"""Test plain source 61131 files."""
try:
Expand Down

0 comments on commit b4c2bdd

Please sign in to comment.