Skip to content

Commit

Permalink
chore: Update make targets for development setup
Browse files Browse the repository at this point in the history
- Change: Rename make targets for development environment setup and
  update target dependency.
- Change: Update use of these make targets in GitHub workflows.
  • Loading branch information
AnonymouX47 committed May 31, 2024
1 parent 36d2d31 commit 14fcf80
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
with:
python-version: "3.12"

- name: Install everything
run: make install
- name: Install the package and dev dependencies
run: make dev

- name: Run the tests and produce the .coverage file
run: make test-cov
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: make install-req
- name: Install dev dependencies
run: make req

- name: Check formatting with black
run: make check-format
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: make install-req
- name: Install dev dependencies
run: make req

- name: Lint with flake8
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install the package and dev dependencies
run: make install
run: make dev

- name: Test with pytest
run: make test-all
4 changes: 2 additions & 2 deletions .github/workflows/type_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: make install-req
- name: Install dev dependencies
run: make req

- name: Type-check with mypy
run: make type
27 changes: 16 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,28 @@ _: check test
pip:
python -m pip install --upgrade pip

install: install-req
python -m pip install -e .
install: pip
python -m pip install .

install-all: pip
python -m pip install --upgrade -e . -r requirements.txt -r docs/requirements.txt
install-dev: pip
python -m pip install -e .

install-req: pip
req: pip
python -m pip install --upgrade -r requirements.txt

install-req-all: pip
python -m pip install --upgrade -r requirements.txt -r docs/requirements.txt

install-req-docs: pip
req-doc: pip
python -m pip install --upgrade -r docs/requirements.txt

uninstall:
pip uninstall -y term-image
req-all: req req-doc

dev: req install-dev

dev-doc: req-doc install-dev

dev-all: req-all install-dev

uninstall: pip
python -m pip uninstall --yes term-image


# Pre-commit Checks and Corrections
Expand Down

0 comments on commit 14fcf80

Please sign in to comment.