mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-28 21:04:13 +02:00
Try different pip install pattern
This commit is contained in:
parent
0fb2cf6714
commit
270335dda7
3 changed files with 11 additions and 11 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
cache-dependency-path: pyproject.toml
|
cache-dependency-path: pyproject.toml
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --group dev
|
pip install . --group dev
|
||||||
- name: Optionally install numpy
|
- name: Optionally install numpy
|
||||||
if: matrix.numpy == 1
|
if: matrix.numpy == 1
|
||||||
run: pip install numpy
|
run: pip install numpy
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ build:
|
||||||
jobs:
|
jobs:
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install --group docs
|
- pip install . --group docs
|
||||||
|
|
||||||
formats:
|
formats:
|
||||||
- pdf
|
- pdf
|
||||||
|
|
|
||||||
18
Justfile
18
Justfile
|
|
@ -3,30 +3,30 @@
|
||||||
|
|
||||||
# Run pytest with supplied options
|
# Run pytest with supplied options
|
||||||
@test *options:
|
@test *options:
|
||||||
just run pytest {{options}}
|
uv run pytest {{options}}
|
||||||
|
|
||||||
@run *options:
|
@run *options:
|
||||||
uv run --isolated --with-editable '.[test,mypy,flake8,docs]' -- {{options}}
|
uv run -- {{options}}
|
||||||
|
|
||||||
# Run linters: black, flake8, mypy, cog
|
# Run linters: black, flake8, mypy, cog
|
||||||
@lint:
|
@lint:
|
||||||
just run black . --check
|
just run black . --check
|
||||||
just run flake8
|
uv run flake8
|
||||||
just run mypy sqlite_utils tests
|
uv run mypy sqlite_utils tests
|
||||||
just run cog --check README.md docs/*.rst
|
uv run cog --check README.md docs/*.rst
|
||||||
just run codespell docs/*.rst --ignore-words docs/codespell-ignore-words.txt
|
uv run --group docs codespell docs/*.rst --ignore-words docs/codespell-ignore-words.txt
|
||||||
|
|
||||||
# Rebuild docs with cog
|
# Rebuild docs with cog
|
||||||
@cog:
|
@cog:
|
||||||
just run cog -r README.md docs/*.rst
|
uv run --group docs cog -r README.md docs/*.rst
|
||||||
|
|
||||||
# Serve live docs on localhost:8000
|
# Serve live docs on localhost:8000
|
||||||
@docs: cog
|
@docs: cog
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
cd docs
|
cd docs
|
||||||
uv run --isolated --with-editable '../.[test,docs]' make livehtml
|
uv run --group docs make livehtml
|
||||||
|
|
||||||
|
|
||||||
# Apply Black
|
# Apply Black
|
||||||
@black:
|
@black:
|
||||||
just run black .
|
uv run black .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue