Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ updates:
directory: "/"
schedule:
interval: "weekly"
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "weekly"
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- run: uv run --extra typing --extra test ty check src/ tests/
- name: Install just
uses: extractions/setup-just@v3
- run: just typing

run-tests:

Expand All @@ -47,10 +49,12 @@ jobs:
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Install just
uses: extractions/setup-just@v3

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

- name: Upload coverage report
if: runner.os == 'Linux' && matrix.python-version == '3.10'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ pytask-latex is available on [PyPI](https://pypi.org/project/pytask-latex) and
[Anaconda.org](https://anaconda.org/conda-forge/pytask-latex). Install it with

```console
$ pip install pytask-latex
$ uv add pytask-latex

# or

$ conda install -c conda-forge pytask-latex
$ pixi add pytask-latex
```

You also need to have `latexmk` installed which determines the necessary number of
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test-cov *FLAGS:

# Run type checking
typing:
uv run --group typing --group test ty check src/ tests/
uv run --group typing --group test --isolated ty check src/ tests/

# Run linting
lint:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ Documentation = "https://github.com/pytask-dev/pytask-latex"
Github = "https://github.com/pytask-dev/pytask-latex"
Tracker = "https://github.com/pytask-dev/pytask-latex/issues"

[project.optional-dependencies]
[dependency-groups]
test = ["pytest", "pytest-cov", "pytest-xdist"]
typing = [
"pytask-parallel",
"ty>=0.0.7",
"ty>=0.0.8",
]

[project.entry-points.pytask]
Expand Down