Skip to content

Commit 5b118d7

Browse files
committed
Using poetry run if venv not enabled
1 parent a4edb28 commit 5b118d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ lint: ## check style with flake8
5151
flake8 compose_x_common tests
5252

5353
test: ## run tests quickly with the default Python
54-
pytest
54+
pytest || poetry run pytest
5555

5656
test-all: ## run tests on every Python version with tox
5757
tox
@@ -93,6 +93,6 @@ install: clean ## install the package to the active Python's site-packages
9393

9494

9595
conform : ## Conform to a standard of coding syntax
96-
isort --profile black src
97-
black src tests
96+
isort --profile black src || poetry run isort --profile black src
97+
black src tests || poetry run black src tests
9898
find src -name "*.json" -type f -exec sed -i '1s/^\xEF\xBB\xBF//' {} +

0 commit comments

Comments
 (0)