Skip to content

Commit

Permalink
refactor: minify CI export
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber authored Dec 19, 2023
1 parent e08a439 commit 7ab6e26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ services:
GID: ${GID:-1000}
{%- if not cookiecutter.private_package_repository_name %}
environment:
- POETRY_PYPI_TOKEN_PYPI
{%- if cookiecutter.development_environment == "strict" %}
- CI
{%- endif %}
- POETRY_PYPI_TOKEN_PYPI
{%- else %}
secrets:
- poetry-auth
Expand Down
6 changes: 1 addition & 5 deletions {{ cookiecutter.__package_name_kebab_case }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,7 @@ convention = "{{ cookiecutter.docstring_style|lower }}"

[[tool.poe.tasks.lint.sequence]]
shell = """
{%- if cookiecutter.development_environment == "strict" %}
if [ -n "$CI" ]; then
export SKIP=no-commit-to-branch
fi
{%- endif %}
{%- if cookiecutter.development_environment == "strict" %}[ -n "$CI" ] && export SKIP=no-commit-to-branch{%- endif %}
pre-commit run --all-files --color always
"""
{%- if cookiecutter.development_environment == "strict" %}
Expand Down

0 comments on commit 7ab6e26

Please sign in to comment.