Skip to content

Commit

Permalink
chore: add wcmatch as a dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed May 12, 2024
1 parent b917499 commit d547ba6
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
os: ['ubuntu-latest']
python-version: ['3.8']

env:
UV_SYSTEM_PYTHON: 1

steps:
- uses: actions/checkout@v4
with:
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
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ 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: ci-check
ci-check:
Expand Down
7 changes: 7 additions & 0 deletions dependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"*": {
"*": [
"wcmatch"
]
}
}
2 changes: 1 addition & 1 deletion plugin/TodoReview.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

import sublime
import sublime_plugin
from wcmatch import wcmatch

assert __package__

_T = TypeVar("_T", bound=Callable[..., Any])

RESULT = Dict[str, Any]

PACKAGE_NAME = __package__.partition(".")[0]
Expand Down
2 changes: 2 additions & 0 deletions requirements-dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mypy
ruff>=0.4
8 changes: 8 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements-dev.in -o requirements-dev.txt
mypy==1.10.0
mypy-extensions==1.0.0
# via mypy
ruff==0.4.4
typing-extensions==4.11.0
# via mypy
3 changes: 1 addition & 2 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
mypy
ruff>=0.4
wcmatch>=8,<9
9 changes: 3 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements.in -o requirements.txt
mypy==1.10.0
mypy-extensions==1.0.0
# via mypy
ruff==0.4.3
typing-extensions==4.11.0
# via mypy
bracex==2.4
# via wcmatch
wcmatch==8.5.1

0 comments on commit d547ba6

Please sign in to comment.