Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
repos:
- repo: https://github.com/seisollc/goat
rev: 593455973b31d1e57474e10ee009668811d68602
rev: deeb57f94559e73a68e1ac8af80ff14c936565b9 # frozen: v2023.08.20
hooks:
- id: seiso-lint
219 changes: 110 additions & 109 deletions Pipfile.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ python3 -m pip install --upgrade pipx gitpython pyyaml
python3 -m pipx ensurepath
pipx install pipenv

# Initialize your project either with HTTP or SSH
# Uses HTTP
# Initialize your project with *either* HTTP or SSH
# HTTP
pipx run --system-site-packages cookiecutter gh:seisollc/cookiecutter-python
# Uses SSH
# SSH
pipx run --system-site-packages cookiecutter git+ssh://git@github.com/seisollc/cookiecutter-python.git

# Enter the project directory
Expand All @@ -26,7 +26,7 @@ need to create it. Once it exists, you can continue.
```bash
# Push the initial commit (IMPORTANT!)
git remote add origin git@github.com:SeisoLLC/$(basename $(pwd)).git
git push origin $(git branch --show-current)
git push origin $(git branch --show-current) --follow-tags
```

After you've pushed the initial commit, you should setup your repository settings - such as setting a branch policy, enabling dependabot, adding docker hub
Expand Down
2 changes: 1 addition & 1 deletion goat
4 changes: 2 additions & 2 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ def run_post_gen_hook():
# The cookiecutter lines are wrapped in quotes to avoid parsing issues
# with certain linters.
"{% if cookiecutter.versioning == 'SemVer-ish' -%}" # type: ignore
subprocess.run(["git", "tag", "v0.0.0"], capture_output=True, check=True)
subprocess.run(["git", "tag", "-a", "v0.0.0", "-m", "Initial project generation"], capture_output=True, check=True)
"{% elif cookiecutter.versioning == 'CalVer' -%}" # type: ignore
subprocess.run(["git", "tag", "v{% now 'local', '%Y.%m.00' %}"], capture_output=True, check=True)
subprocess.run(["git", "tag", "-a", "v{% now 'local', '%Y.%m.00' %}", "-m", "Initial project generation"], capture_output=True, check=True)
"{% endif %}" # type: ignore
# fmt: on
##############
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v4
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.task/*
sbom.*.json
vulns.*.json
seiso_{{ cookiecutter.project_slug }}_*.tar

# Created by https://www.toptal.com/developers/gitignore/api/vim,emacs,visualstudiocode,python,macos,windows
# Edit at https://www.toptal.com/developers/gitignore?templates=vim,emacs,visualstudiocode,python,macos,windows
Expand Down