Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed May 18, 2024
1 parent 982ea27 commit f307d83
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 38 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ mkdocs.yml export-ignore
mypy.ini export-ignore
pyproject.toml export-ignore
pyrightconfig.json export-ignore
requirements.txt export-ignore
requirements-* export-ignore
requirements.* export-ignore
scripts/ export-ignore
stubs/ export-ignore
tests/ export-ignore
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
name: ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}

env:
UV_SYSTEM_PYTHON: 1

strategy:
matrix:
os: ['ubuntu-latest']
Expand All @@ -44,7 +47,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U uv
make UV_INSTALL_FLAGS="--system" install
make install-dev
- name: Do linting
run: |
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,18 @@ all:
install:
uv pip install $(UV_INSTALL_FLAGS) -r requirements.txt

.PHONY: install-dev
install-dev:
uv pip install $(UV_INSTALL_FLAGS) -r requirements-dev.txt

.PHONY: pip-compile
pip-compile:
uv pip compile --upgrade requirements.in -o requirements.txt
uv pip compile --upgrade requirements-dev.in -o requirements-dev.txt

.PHONY: update-changelog
update-changelog:
git cliff --output=CHANGELOG.md

.PHONY: ci-check
ci-check:
Expand Down
12 changes: 12 additions & 0 deletions requirements-dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-r requirements.in

mypy
ruff>=0.4

# ----------- #
# for scripts #
# ----------- #

tinycss2
typer>=0.12.3,<1
typing_extensions
33 changes: 33 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements-dev.in -o requirements-dev.txt
click==8.1.7
# via typer
colorama==0.4.6
# via click
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
mypy==1.10.0
# via -r requirements-dev.in
mypy-extensions==1.0.0
# via mypy
pygments==2.18.0
# via rich
rich==13.7.1
# via typer
ruff==0.4.4
# via -r requirements-dev.in
shellingham==1.5.4
# via typer
tinycss2==1.3.0
# via -r requirements-dev.in
typer==0.12.3
# via -r requirements-dev.in
typing-extensions==4.11.0
# via
# -r requirements-dev.in
# mypy
# typer
webencodings==0.5.1
# via tinycss2
10 changes: 0 additions & 10 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
mypy
ruff>=0.3

# ----------- #
# for scripts #
# ----------- #

tinycss2
typer>=0.12.3,<1
typing_extensions
26 changes: 0 additions & 26 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,2 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements.in -o requirements.txt
click==8.1.7
# via typer
colorama==0.4.6
# via click
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
mypy==1.9.0
mypy-extensions==1.0.0
# via mypy
pygments==2.17.2
# via rich
rich==13.7.1
# via typer
ruff==0.3.7
shellingham==1.5.4
# via typer
tinycss2==1.2.1
typer==0.12.3
typing-extensions==4.11.0
# via
# mypy
# typer
webencodings==0.5.1
# via tinycss2

0 comments on commit f307d83

Please sign in to comment.