Skip to content

Commit

Permalink
Clean up pre-commit installation and Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
eXamadeus committed Dec 27, 2023
1 parent 67c17fd commit 1493fee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,5 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Pytest
run: |
make install-lib
make install-dev
make install
make test
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ $(VENV_ACTIVATE): setup.py setup.cfg
venv: $(VENV_ACTIVATE) ## Create a new (empty) virtual environment

freeze: ## Run pip freeze -l in the virtual environment
@$(VENV_RUN); pip freeze -l
@$(VENV_RUN); $(PIP_CMD) freeze -l

pre-commit: ## Install pre-commit hooks
@pre-commit install > /dev/null
@$(VENV_RUN); python -m pre_commit install > /dev/null

install: ## Install full dependencies into venv
make install-lib
make install-dev
@make pre-commit
make pre-commit

install-dev: venv ## Install requirements for development into venv
@$(VENV_RUN); $(PIP_CMD) install -r requirements-dev.txt
Expand All @@ -39,7 +39,7 @@ install-lib: venv ## Install requirements for godaddypy into venv

dist: ## Build distributions
@$(VENV_RUN); pip install --upgrade twine build;
python -m build
@$(VENV_RUN); python -m build

publish: clean-dist dist ## Publish the library to the central PyPi repository
$(VENV_RUN); twine upload dist/*
Expand Down

0 comments on commit 1493fee

Please sign in to comment.