Skip to content

Commit 0fe6df0

Browse files
authored
Update project to use uv + updating deps (#443)
* update workflow checkout version * move all requirements to uv * update workflows to use uv
1 parent bd31044 commit 0fe6df0

19 files changed

Lines changed: 7298 additions & 612 deletions

.github/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "pip"
3+
- package-ecosystem: "uv"
44
directory: "/"
55
schedule:
66
interval: "weekly"

.github/workflows/check_docs.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1414
with:
1515
fetch-depth: 0
1616

17-
- name: Set up Python
18-
uses: actions/setup-python@v5
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v6
1919
with:
20-
python-version: 3.11
21-
cache: 'pip'
22-
cache-dependency-path: setup.py
20+
enable-cache: true
2321

24-
- name: Install dependencies
25-
run: |
26-
pip install -r requirements.txt
27-
pip list
22+
- name: Sync dependencies
23+
run: uv sync
2824

2925
- name: Build docs
30-
run: mkdocs build -d build --strict
26+
run: uv run mkdocs build -d build --strict
3127

3228
- name: Upload docs
3329
uses: actions/upload-artifact@v4

.github/workflows/code_formatting.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,24 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- name: Set up Python
1919
uses: actions/setup-python@v5
2020
with:
2121
python-version: 3.11
2222

23-
- name: Install dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install -r requirements.txt
27-
pip list
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v6
25+
with:
26+
enable-cache: true
27+
28+
- name: Sync dependencies
29+
run: uv sync
2830

2931
- name: ruff check
3032
run: |
31-
ruff check .
33+
uv run ruff check .
3234
3335
- name: ruff format
3436
run: |
35-
ruff format .
37+
uv run ruff format .

.github/workflows/deploy_docs.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
fetch-depth: 0
1919

20-
- name: Set up Python
21-
uses: actions/setup-python@v5
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v6
2222
with:
23-
python-version: 3.11
24-
cache: 'pip'
25-
cache-dependency-path: setup.py
23+
enable-cache: true
2624

27-
- name: Install dependencies
28-
run: |
29-
pip install -r requirements.txt
30-
pip list
25+
- name: Sync dependencies
26+
run: uv sync
3127

3228
- name: Deploy docs
33-
run: mkdocs gh-deploy --force
29+
run: uv run mkdocs gh-deploy --force

.github/workflows/docs_formatting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Check Markdown formatting
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- uses: xt0rted/markdownlint-problem-matcher@v3
1818
- run: npm install -g markdownlint-cli
1919
- run: markdownlint **/*.md --ignore node_modules -c .github/markdownlint.json

.github/workflows/linkcheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Check Markdown links
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- uses: gaurav-nelson/github-action-markdown-link-check@master
1818
with:
1919
config-file: '.github/linkcheck_config.json'

.github/workflows/pre_commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919

2020
- name: Set up Python
2121
uses: actions/setup-python@v5

.github/workflows/repo_scraper.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,21 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1414

15-
- name: Set up Python
16-
uses: actions/setup-python@v5
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v6
1717
with:
18-
python-version: 3.11
19-
cache: 'pip'
20-
cache-dependency-path: setup.py
18+
enable-cache: true
19+
20+
- name: Sync dependencies
21+
run: uv sync
2122

2223
- name: Auth with GCP
2324
uses: google-github-actions/auth@v2
2425
with:
2526
credentials_json: ${{ secrets.GCP_SA_KEY }}
2627

27-
- name: Install dependencies
28-
run: |
29-
pip install -r tools/repo_stats/requirements.txt
30-
pip list
31-
3228
- name: Run repo scraper
3329
env:
3430
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/update_pre_commit.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,18 @@ jobs:
1515
auto-update:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919

20-
- name: Set up Python
21-
uses: actions/setup-python@v5
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v6
2222
with:
23-
python-version: 3.11
24-
cache: 'pip'
23+
enable-cache: true
2524

26-
- name: Upgrade pip
27-
run: python -m pip install --upgrade pip
28-
29-
- name: Install pre-commit
30-
run: pip install pre-commit
25+
- name: Sync dependencies
26+
run: uv sync
3127

3228
- name: Run pre-commit autoupdate
33-
run: pre-commit autoupdate
29+
run: uv run pre-commit autoupdate
3430

3531
- name: Create Pull Request
3632
uses: peter-evans/create-pull-request@v7

pyproject.toml

Lines changed: 57 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,63 @@ classifiers = [
1111
"Programming Language :: Python :: 3.13",
1212
]
1313
dependencies = [
14-
"codespell==2.4.1",
15-
"invoke==2.2",
16-
"ipython==9.0.2",
17-
"markdown-exec[ansi]==1.10",
18-
"mkdocs-exclude==1.0.2",
19-
"mkdocs-git-revision-date-localized-plugin==1.4.5",
20-
"mkdocs-glightbox==0.4",
21-
"mkdocs-material==9.6.12",
22-
"mkdocs-material-extensions==1.3.1",
23-
"mkdocs-same-dir==0.1.3",
24-
"pre-commit==4.1",
25-
"pymdown-extensions==10.14.3",
26-
"ruff==0.9.9",
14+
"codespell>=2.4.1",
15+
"invoke>=2.2",
16+
"ipython>=9.0.2",
17+
"markdown-exec[ansi]>=1.10",
18+
"mkdocs-exclude>=1.0.2",
19+
"mkdocs-git-revision-date-localized-plugin>=1.4.5",
20+
"mkdocs-glightbox>=0.4",
21+
"mkdocs-material>=9.7",
22+
"mkdocs-material-extensions>=1.3.1",
23+
"mkdocs-same-dir>=0.1.3",
24+
"pre-commit>=4.1",
25+
"pymdown-extensions>=10.14.3",
26+
"ruff>=0.14.5",
27+
]
28+
29+
[dependency-groups]
30+
exercises = [
31+
"cookiecutter>=2.6",
32+
"coverage>=7.11.3",
33+
"datasets>=4.4.1",
34+
"dvc>=3.64",
35+
"dvc-gdrive>=3.0.1",
36+
"dvc-gs>=3.0.2",
37+
"evidently>=0.7.16",
38+
"fastapi>=0.121.2",
39+
"google-cloud-storage>=3.6",
40+
"httpx>=0.28.1",
41+
"hydra-core>=1.3.2",
42+
"invoke>=2.2",
43+
"locust>=2.42.3",
44+
"mkdocs-material>=9.7",
45+
"mypy>=1.18.2",
46+
"nbconvert>=7.16.6",
47+
"neural-compressor>=3.6",
48+
"onnxruntime>=1.23.2",
49+
"optuna>=4.6",
50+
"pipreqs>=0.4.13",
51+
"pre-commit>=4.1",
52+
"prefect>=3.5",
53+
"prometheus-fastapi-instrumentator>=7.1",
54+
"ptflops>=0.7.5",
55+
"pydantic>=2.11.10",
56+
"pytest>=8.4.2",
57+
"python-dotenv>=1.2.1",
58+
"pytorch-lightning>=2.5.6",
59+
"requests>=2.32.3",
60+
"ruff>=0.14.5",
61+
"scikit-learn>=1.7.2",
62+
"snakeviz>=2.2.2",
63+
"streamlit>=1.51",
64+
"torch>=2.9.1",
65+
"torch-tb-profiler>=0.4.3",
66+
"torchvision>=0.24.1",
67+
"transformers>=4.57.1",
68+
"typer>=0.19.2",
69+
"uvicorn>=0.38",
70+
"wandb>=0.23",
2771
]
2872

2973
[tool.ruff]

0 commit comments

Comments
 (0)