Skip to content

Commit

Permalink
refactor: simplify unnecessay cookiecutter.dependency_management_tool…
Browse files Browse the repository at this point in the history
… comparing
  • Loading branch information
Lee-W committed Nov 20, 2024
1 parent a888223 commit 342f421
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install -U pip {% if cookiecutter.dependency_management_tool == 'pipenv' -%}pipenv{%- elif cookiecutter.dependency_management_tool == 'poetry' -%}poetry{% endif %} invoke
python -m pip install -U pip {{ cookiecutter.dependency_management_tool }} invoke
inv env.init-dev --no-pre-commit
- name: Run pre-commit hooks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install -U pip {% if cookiecutter.dependency_management_tool == 'pipenv' -%}pipenv{%- elif cookiecutter.dependency_management_tool == 'poetry' -%}poetry{% endif %} invoke
python -m pip install -U pip {{ cookiecutter.dependency_management_tool }} invoke
inv env.init-dev --no-pre-commit
- name: Build package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Install doc dependencies
run: |
python -m pip install -U pip {% if cookiecutter.dependency_management_tool == 'pipenv' -%}pipenv{%- elif cookiecutter.dependency_management_tool == 'poetry' -%}poetry{% endif %} invoke
python -m pip install -U pip {{ cookiecutter.dependency_management_tool }} invoke
inv env.init-dev --groups-to-install doc
- name: Build docs
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ git checkout -b [YOUR FEATURE]

```sh
python -m pip install pipx
python -m pipx install {% if cookiecutter.dependency_management_tool == 'pipenv' -%}pipenv{%- elif cookiecutter.dependency_management_tool == 'poetry' -%}poetry{% endif %} invoke
python -m pipx install {{ cookiecutter.dependency_management_tool }} invoke
python -m pipx ensurepath
```

Expand Down

0 comments on commit 342f421

Please sign in to comment.