Skip to content

Commit

Permalink
MAINT: update lock files and dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 16, 2024
1 parent edbddad commit 04af95a
Show file tree
Hide file tree
Showing 13 changed files with 123 additions and 158 deletions.
11 changes: 11 additions & 0 deletions .binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -ex
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.cargo/env
uv export \
--extra jupyter \
> requirements.txt
uv pip install \
--requirement requirements.txt \
--system
uv cache clean
1 change: 1 addition & 0 deletions .binder/runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.12
37 changes: 0 additions & 37 deletions .github/release-drafter.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/cd.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:

jobs:
doc:
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v1
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v2
permissions:
pages: write
id-token: write
Expand All @@ -39,4 +39,4 @@ jobs:
if: inputs.specific-pip-packages == ''
secrets:
token: ${{ secrets.PAT }}
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v1
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v2
2 changes: 1 addition & 1 deletion .github/workflows/clean-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Remove caches
runs-on: ubuntu-24.04
steps:
- uses: ComPWA/actions/clean-caches@v1
- uses: ComPWA/actions/clean-caches@v2
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.ref }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Requirements
name: Update

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -12,12 +12,13 @@ on:
- epic/*
paths:
- .pre-commit-config.yaml
- uv.lock
schedule:
- cron: "0 3 7 */3 *"
workflow_dispatch:

jobs:
requirements:
uses: ComPWA/actions/.github/workflows/requirements.yml@v1
lock:
uses: ComPWA/actions/.github/workflows/lock.yml@v2
secrets:
token: ${{ secrets.PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ on:

jobs:
lint-pr:
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v1
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v2
16 changes: 0 additions & 16 deletions .github/workflows/release-drafter.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pyvenv*/
**.code-workspace

# Exceptions
!.binder/runtime.txt
!.github/*.yml
!.github/*/*.yml
!.pre-commit-config.yaml
Expand Down
13 changes: 6 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ repos:
- id: check-hooks-apply
- id: check-useless-excludes

- repo: /data/local/redeboer/work/ComPWA/policy
rev: 565f235682bdafe8ea5c0d7e88220c95a919a26f
- repo: https://github.com/ComPWA/policy
rev: 0.5.0rc8
hooks:
- id: check-dev-files
args:
- --no-prettierrc
- --no-cd
- --no-pypi
- --no-version-branches
- --pin-requirements=quarterly
- --repo-name=strong2020-salamanca
- --repo-title="STRONG2020 HaSP School"
- --update-lock-files=quarterly
- id: colab-toc-visible
- id: remove-empty-tags

Expand Down Expand Up @@ -62,7 +61,7 @@ repos:
types_or: [python, pyi, jupyter]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-json
Expand Down Expand Up @@ -101,6 +100,6 @@ repos:
)$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.20
rev: 0.4.22
hooks:
- id: uv-lock
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# STRONG2020 HaSP School

[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Google Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ComPWA/strong2020-salamanca/blob/main)
Expand Down
Loading

0 comments on commit 04af95a

Please sign in to comment.