diff --git a/README.md b/README.md index 0a485ce..ef15919 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,14 @@ My personal Copier template for Python projects. * **Automated workflows** - [just](https://github.com/casey/just) commands for testing, linting, and building * **Code quality tools**: [ruff](https://docs.astral.sh/ruff/) for linting and formatting, pre-commit hooks * **Testing setup** with [pytest](https://docs.pytest.org/en/stable/) and [Hatch](https://hatch.pypa.io/latest/) for cross-version testing -* **GitHub Actions integration**: optional workflows for testing and PyPI publishing +* **GitHub Actions integration**: optional workflows for linting, testing and PyPI publishing * **Licenses from** [choosealicense.com](https://choosealicense.com/) -* **Basic ```README.md```** with badges, installation instructions, and project structure +* **Basic ```README.md```** with badges and installation instructions ## Requirements * Python 3.8+ -* [Copier](https://copier.readthedocs.io/) (`pip install copier` or `uv tool install copier`) +* [Copier](https://copier.readthedocs.io/) (`pip install copier copier_templates_extensions`) * Git ## Quick Setup diff --git a/copier.yml b/copier.yml index d2dcf2d..0761cfe 100644 --- a/copier.yml +++ b/copier.yml @@ -137,7 +137,7 @@ github_actions: Tests: tests Lint: lint Publish to PyPI: publish - default: [tests, lint] + default: [] readme_badges: type: bool diff --git a/template/.github/workflows/tests.yml.jinja b/template/.github/workflows/tests.yml.jinja index 0c4fec2..dd19ea0 100644 --- a/template/.github/workflows/tests.yml.jinja +++ b/template/.github/workflows/tests.yml.jinja @@ -15,11 +15,11 @@ jobs: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v3 - {% raw %} + {% raw %} - name: Set up Python ${{ matrix.python-version }} run: uv python install ${{ matrix.python-version }} - name: Install dependencies run: uv sync --extra test --python ${{ matrix.python-version }} - {% endraw %} - name: Run pytest - run: uv run pytest -v + run: uv run --python ${{ matrix.python-version }} pytest -v + {% endraw %} diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index afbcd9a..b534332 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -66,13 +66,13 @@ select = [ 'YTT', # flake8-2020 'B', # flake8-bugbear "PLE", # pylint - 'PYI006', # flake8-pyi - 'PYI019', # flake8-pyi - 'PYI024', # flake8-pyi - 'PYI030', # flake8-pyi - 'PYI062', # flake8-pyi - 'PYI063', # flake8-pyi - 'PYI066', # flake8-pyi + 'PYI006', + 'PYI019', + 'PYI024', + 'PYI030', + 'PYI062', + 'PYI063', + 'PYI066', "RUF001", "RUF002", "RUF003",