Skip to content

Commit f6965e0

Browse files
WIP
1 parent a5eb9e4 commit f6965e0

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ check: ## Check with mypy and flake8
7676
.PHONY: checkall
7777
checkall: format check ## Format and check with mypy and flake8
7878

79+
.PHONY: build
80+
build: format check test ## Format and check with mypy and flake8
81+
82+
.PHONY: test
83+
test: ## Run pytest with coverage
84+
pytest
85+
7986
.PHONY: package
8087
package: ## Package the project into .zip file
8188
rm -rf .$(PROJ_DIR)

src/wake/engine.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def cmd(text: str) -> Std:
1717
return Std(None, None, None)
1818

1919

20-
def exec_label(production: typedef.AnyDict, args: list[str], environ: dict[str, str]) -> None:
20+
def exec_label(
21+
production: typedef.AnyDict, args: list[str], environ: dict[str, str]
22+
) -> None:
2123
"""Executes all shell commands in label contents.
2224
2325
Args:

src/wake/parser.py

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def _consume(self, token_type: str) -> Token:
3838

3939
self.lookahead = self.tokenizer.get_next()
4040
return token
41+
4142
def variables(self) -> list[AnyDict]:
4243
variables = []
4344
while self.lookahead != "LABEL":

tests/test_exec.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import pytest
22

3+
34
@pytest.fixture
45
def fixture_name(request):
56
return request.param
67

7-
@pytest.mark.parametrize('fixture_name', ['foo', 'bar'], indirect=True)
8+
9+
@pytest.mark.parametrize("fixture_name", ["foo", "bar"], indirect=True)
810
def test_indirect(fixture_name):
911
assert fixture_name in ["foo", "bar"]

0 commit comments

Comments
 (0)