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
6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
run: uv sync --all-extras --dev
shell: bash
- name: Run pre-commit
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd
run: uv run pre-commit run --all-files
shell: bash

test-ubuntu:
needs: [lint-and-audit]
Expand Down Expand Up @@ -115,5 +116,4 @@ jobs:
shell: bash
- name: Verify SHA256
run: sha256sum dist/*.whl
shell: bash
{% endraw %}
shell: bash{% endraw %}
3 changes: 1 addition & 2 deletions {{cookiecutter.project_slug}}/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
{% endraw %}
uses: actions/deploy-pages@v4{% endraw %}
3 changes: 1 addition & 2 deletions {{cookiecutter.project_slug}}/.github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ jobs:
- name: Run pip-audit
uses: pypa/gh-action-pip-audit@v1.1.0
with:
inputs: requirements.txt
{% endraw %}
inputs: requirements.txt{% endraw %}
1 change: 0 additions & 1 deletion {{cookiecutter.project_slug}}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,3 @@ cython_debug/

# Runtime Logs
logs/

1 change: 0 additions & 1 deletion {{cookiecutter.project_slug}}/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,3 @@ STOP and ASK the user before:
* Deleting any file outside of src/ or tests/.
* Adding a dependency that requires OS-level libraries (e.g., libpq-dev).
* Committing any secrets or API keys (even for testing).

22 changes: 0 additions & 22 deletions {{cookiecutter.project_slug}}/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,7 @@
# Source Code: https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}

from {{ cookiecutter.project_slug }}.main import hello_world
import pytest
from hypothesis import given, strategies as st
import re


def test_hello_world() -> None:
assert hello_world() == "Hello World!"


@pytest.mark.asyncio
async def test_hello_world_async_structure() -> None:
# Example placeholder for an async structural test
assert hello_world() == "Hello World!"


@given(st.text())
def test_hello_world_hypothesis(sample_text: str) -> None:
# Example property-based test setup using hypothesis
assert isinstance(hello_world(), str)


def test_module_naming_convention() -> None:
"""Ensure strict snake_case module naming convention."""
module_name = "{{ cookiecutter.project_slug }}"
pattern = r"^[_a-zA-Z][_a-zA-Z0-9]+$"
assert re.match(pattern, module_name), f"Module name '{module_name}' violates snake_case convention."
2 changes: 0 additions & 2 deletions {{cookiecutter.project_slug}}/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
# Source Code: https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}

from pathlib import Path
import re
import pytest

from {{ cookiecutter.project_slug }}.utils.logger import logger

Expand Down