Skip to content

Commit 41e7a2a

Browse files
committed
chore: Move pyproject.toml into root to make more natural invocations
1 parent f74d11d commit 41e7a2a

4 files changed

Lines changed: 12 additions & 16 deletions

File tree

.github/workflows/update-data.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ jobs:
3232
restore-keys: git-repos-
3333

3434
- name: Run pipeline
35-
working-directory: code
36-
run: uv run openneuro-dashboard run-all --output-dir ../data --cache-dir ~/.cache/openneuro-dashboard/repos
35+
run: uv run openneuro-dashboard run-all
3736

3837
- name: Commit and push if changed
3938
run: |

README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ data/datasets/{id}/
9191
## Setup
9292

9393
```bash
94-
cd code
9594
uv sync
9695
```
9796

@@ -102,29 +101,26 @@ Requires Python 3.14+.
102101
### Full Pipeline
103102

104103
```bash
105-
cd code
106-
uv run openneuro-dashboard run-all --output-dir ../data
104+
uv run openneuro-dashboard run-all
107105
```
108106

109107
### Individual Stages
110108

111109
```bash
112-
cd code
113-
114110
# Stage 1: Fetch GraphQL data
115-
uv run openneuro-dashboard fetch-graphql --output-dir ../data
111+
uv run openneuro-dashboard fetch-graphql
116112

117113
# Stage 2: Check GitHub mirrors
118-
uv run openneuro-dashboard check-github --output-dir ../data
114+
uv run openneuro-dashboard check-github
119115

120116
# Stage 3: Check S3 versions
121-
uv run openneuro-dashboard check-s3-version --output-dir ../data
117+
uv run openneuro-dashboard check-s3-version
122118

123119
# Stage 4: Check S3 files
124-
uv run openneuro-dashboard check-s3-files --output-dir ../data --cache-dir ~/.cache/openneuro-dashboard/repos
120+
uv run openneuro-dashboard check-s3-files --cache-dir ~/.cache/openneuro-dashboard/repos
125121

126122
# Stage 5: Summarize
127-
uv run openneuro-dashboard summarize --output-dir ../data
123+
uv run openneuro-dashboard summarize
128124
```
129125

130126
Common options:
@@ -135,14 +131,12 @@ Common options:
135131
### Generating Test Data
136132

137133
```bash
138-
cd code
139-
uv run openneuro-dashboard gen-data --output-dir ../data --num-datasets 50 --seed 42
134+
uv run openneuro-dashboard gen-data --num-datasets 50 --seed 42
140135
```
141136

142137
## Running Tests
143138

144139
```bash
145-
cd code
146140
uv run --group test pytest -v
147141
```
148142

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ openneuro-dashboard = "openneuro_dashboard.__main__:app"
2626
requires = ["uv_build>=0.10.2,<0.11.0"]
2727
build-backend = "uv_build"
2828

29+
[tool.uv.build-backend]
30+
module-root = "code/src"
31+
2932
## Use this to work on paired refactors
3033
# [tool.uv.sources]
31-
# ondiagnostics = { path = "../../ondiagnostics", editable = true }
34+
# ondiagnostics = { path = "../ondiagnostics", editable = true }
3235

3336
[dependency-groups]
3437
dev = [
File renamed without changes.

0 commit comments

Comments
 (0)