Skip to content

Commit deb8a42

Browse files
committed
chore: modernized build
1 parent 9aba8f3 commit deb8a42

14 files changed

Lines changed: 1447 additions & 197 deletions

.github/actions/setup_environment/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ inputs:
77
runs:
88
using: composite
99
steps:
10-
- name: Setup Python
11-
uses: actions/setup-python@v5
10+
- name: Install uv
11+
uses: astral-sh/setup-uv@v6
1212
with:
13+
version: "0.8.9"
1314
python-version: ${{ inputs.python-version }}
15+
enable-cache: true
1416

15-
- name: Install CI Dependencies
17+
- name: Install the project
1618
shell: bash
17-
run: |
18-
pip install -r ci_requirements.txt
19-
echo "/home/runner/.local/bin" >> $GITHUB_PATH
19+
run: uv sync --locked --all-extras --dev

.github/workflows/build_and_upload_wheel.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/release_public.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/release_test.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/run_linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: ./.github/actions/setup_environment
2121

2222
- name: Lint
23-
run: pre-commit run --all-files
23+
run: uv run pre-commit run --all-files
2424

2525
- name: Required modifications
2626
if: ${{ failure() }}

.github/workflows/run_tests.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,11 @@ jobs:
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030

31-
- name: Install Dependencies
32-
run: |
33-
pip install -r requirements.txt
34-
35-
- name: Install Project
36-
run: |
37-
pip install .
38-
3931
- name: Run tests & coverage
4032
run: |
41-
coverage run -m pytest --no-header -v test
42-
coverage report -m -i
43-
coverage html -i
33+
uv run coverage run -m pytest --no-header -v test
34+
uv run coverage report -m -i
35+
uv run coverage html -i
4436
4537
- name: Archive coverage results
4638
if: startsWith(matrix.os, 'ubuntu')

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11

22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.5.0
4+
rev: v5.0.0
55
hooks:
66
- id: trailing-whitespace
77
- id: end-of-file-fixer
88

99
- repo: https://github.com/asottile/pyupgrade
10-
rev: v3.15.2
10+
rev: v3.20.0
1111
hooks:
1212
- id: pyupgrade
1313
args: [--py37-plus]
1414

1515
- repo: https://github.com/omnilib/ufmt
16-
rev: v2.5.1
16+
rev: v2.8.0
1717
hooks:
1818
- id: ufmt
1919
additional_dependencies:
20-
- black == 23.1.0
20+
- black == 25.1.0
2121
- usort == 1.1.0b2
2222

2323
- repo: https://github.com/pycqa/flake8
24-
rev: 7.0.0
24+
rev: 7.2.0
2525
hooks:
2626
- id: flake8

ci_requirements.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

dmlcloud/data/sharding.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Utilities for sharding data across multiple workers."""
22

3-
43
from typing import Sequence
54

65
import numpy as np

dmlcloud/slurm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Provides functions to interact with slurm
33
"""
44

5-
65
import os
76

87

0 commit comments

Comments
 (0)