Skip to content

Commit

Permalink
fix: Makefile targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Feb 11, 2022
1 parent 1e130b1 commit 2e6976b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PYTHON_BINARY := python3
VIRTUAL_BIN := venv/bin
VIRTUAL_ENV := venv
VIRTUAL_BIN := $(VIRTUAL_ENV)/bin
PROJECT_NAME := forks_sync
TEST_DIR := test

Expand All @@ -17,7 +18,7 @@ coverage:

## clean - Remove the virtual environment and clear out .pyc files
clean:
rm -rf ~/.venv/$(PROJECT_NAME)/ venv
rm -rf $(VIRTUAL_ENV)
find . -name '*.pyc' -delete
rm -rf dist
rm -rf build
Expand All @@ -39,8 +40,7 @@ format-check: black-check isort-check lint mypy

## install - Install the project locally
install:
$(PYTHON_BINARY) -m venv ~/.venv/$(PROJECT_NAME)/
ln -snf ~/.venv/$(PROJECT_NAME)/ venv
$(PYTHON_BINARY) -m venv $(VIRTUAL_ENV)
$(VIRTUAL_BIN)/pip install -e ."[dev]"

## isort - Sorts imports throughout the project
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.black]
experimental-string-processing = true
preview = true
line-length = 120
skip-string-normalization = true

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
'flake8',
'isort',
'mypy',
'pytest == 6.*',
'pytest-cov == 2.*',
'pytest == 7.*',
'pytest-cov == 3.*',
]

setuptools.setup(
Expand Down

0 comments on commit 2e6976b

Please sign in to comment.