Skip to content

Commit c3fd0b6

Browse files
committed
tweaks
1 parent b0d9069 commit c3fd0b6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7-
branches: [main]
87

98
jobs:
109
test:
@@ -26,6 +25,7 @@ jobs:
2625
copier -f -d docker=True -d docs=True . build/ && cd build/
2726
poetry run task lint
2827
- name: Push rendered project
28+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
2929
run: |
3030
REMOTE=https://${GITHUB_ACTOR}:${{ secrets.GH_PAT }}@github.com/${GITHUB_REPOSITORY}.git
3131
git -C build push -fu $REMOTE HEAD:rendered

src/pyproject.toml.jinja

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,24 @@ description = "{{project_description}}"
55
authors = ["{{author_name}} <{{author_email}}>"]
66
repository = "https://github.com/{{repo_username}}/{{repo_name}}"
77
packages = [{ include = "{{project_name}}", from = "src" }]
8-
{% if private %}classifiers = ["Private :: Do Not Upload"]{%- endif %}
8+
{%- if private %}
9+
classifiers = ["Private :: Do Not Upload"]
10+
{%- endif %}
911

1012
[tool.poetry.dependencies]
1113
python = "^3.9"
1214

1315
[tool.poetry.dev-dependencies]
1416
black = "*"
1517
flake8 = "*"
16-
pyproject-flake8 = "*"
1718
isort = "*"
1819
{% if docs -%}
1920
mkdocs = "*"
2021
mkdocs-material = "*"
2122
{% endif -%}
2223
mypy = "*"
2324
pre-commit = "*"
25+
pyproject-flake8 = "*"
2426
pytest = "*"
2527
taskipy = "*"
2628

0 commit comments

Comments
 (0)