Skip to content

Commit 745510f

Browse files
authored
chore: update install docs and typing setup (#102)
* chore: update install docs and typing setup * chore: bump ty minimum to 0.0.8 * chore: add weekly dependabot for uv * chore: add github-actions dependabot updates * chore: group github-actions dependabot updates
1 parent 6919ce9 commit 745510f

5 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "weekly"
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*"
12+
- package-ecosystem: "uv"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
- uses: astral-sh/setup-uv@v7
2727
with:
2828
enable-cache: true
29-
- run: uv run --extra typing --extra test ty check src/ tests/
29+
- name: Install just
30+
uses: extractions/setup-just@v3
31+
- run: just typing
3032

3133
run-tests:
3234

@@ -47,10 +49,12 @@ jobs:
4749
with:
4850
enable-cache: true
4951
python-version: ${{ matrix.python-version }}
52+
- name: Install just
53+
uses: extractions/setup-just@v3
5054

5155
- name: Run tests
5256
shell: bash -l {0}
53-
run: uv run --extra test pytest --cov=./ --cov-report=xml -n auto
57+
run: just test-cov
5458

5559
- name: Upload coverage report
5660
if: runner.os == 'Linux' && matrix.python-version == '3.10'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ pytask-latex is available on [PyPI](https://pypi.org/project/pytask-latex) and
2525
[Anaconda.org](https://anaconda.org/conda-forge/pytask-latex). Install it with
2626

2727
```console
28-
$ pip install pytask-latex
28+
$ uv add pytask-latex
2929

3030
# or
3131

32-
$ conda install -c conda-forge pytask-latex
32+
$ pixi add pytask-latex
3333
```
3434

3535
You also need to have `latexmk` installed which determines the necessary number of

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test-cov *FLAGS:
1212

1313
# Run type checking
1414
typing:
15-
uv run --group typing --group test ty check src/ tests/
15+
uv run --group typing --group test --isolated ty check src/ tests/
1616

1717
# Run linting
1818
lint:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ Documentation = "https://github.com/pytask-dev/pytask-latex"
3030
Github = "https://github.com/pytask-dev/pytask-latex"
3131
Tracker = "https://github.com/pytask-dev/pytask-latex/issues"
3232

33-
[project.optional-dependencies]
33+
[dependency-groups]
3434
test = ["pytest", "pytest-cov", "pytest-xdist"]
3535
typing = [
3636
"pytask-parallel",
37-
"ty>=0.0.7",
37+
"ty>=0.0.8",
3838
]
3939

4040
[project.entry-points.pytask]

0 commit comments

Comments
 (0)