Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
astrojuanlu committed Oct 1, 2024
1 parent d77aaa1 commit 3ec86be
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v2024.02.1
_commit: v2024.09.1
_src_path: gh:astrojuanlu/copier-pylib
author_email: [email protected]
author_name: Juan Luis Cano Rodríguez
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ jobs:
id-token: write
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: '3.8'
- name: Install uv
run: python -m pip install uv
- name: Install build dependencies
run: python -m pip install build
run: uv pip install --system build
- name: Build package
run: python -m build
- name: Publish to PyPI
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: python -m pip install uv
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
uv pip install --system tox tox-uv tox-gh-actions
- name: Test with tox
run: tox
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: check-merge-conflict

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.2
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ make sure that you **read our code of conduct** (`CODE_OF_CONDUCT.md`).
2. Set up and activate a Python development environment
(advice: use [venv](https://docs.python.org/3/library/venv.html),
[virtualenv](https://virtualenv.pypa.io/), or [miniconda](https://docs.conda.io/en/latest/miniconda.html))
3. Install tox: `python -m pip install tox`
3. Install tox: `uv tool install tox`
4. Make sure the tests run: `tox -e py38`
(change the version number according to the Python you are using)
5. Start a new branch: `git switch -c new-branch main`
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ Sphinx theme for the Kedro ecosystem
To install, run

```
(.venv) $ pip install kedro-sphinx-theme
$ uv pip install kedro-sphinx-theme
```

## Development

To run style checks:

```
(.venv) $ pip install pre-commit
(.venv) $ pre-commit run -a
$ uv tool install pre-commit
$ pre-commit run -a
```

## Overview
Expand Down

0 comments on commit 3ec86be

Please sign in to comment.