Skip to content

Commit 3cdba41

Browse files
chore(deps): update dependency uv_build to >=0.10.0,<0.11.0 (#135)
1 parent 419625f commit 3cdba41

8 files changed

Lines changed: 187 additions & 188 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
token: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- name: setup-uv
24-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
24+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
2525
with:
2626
version: "latest"
2727
enable-cache: true

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030

3131
- name: setup-uv
32-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
32+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
3333
with:
3434
python-version: ${{ inputs.python_version }}
3535
version: "latest"

.github/workflows/test-reproducibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

2020
- name: setup-uv
21-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
21+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
2222
with:
2323
version: "latest"
2424
enable-cache: true

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: echo "${{ matrix.python-version }}" > .python-version
3434

3535
- name: setup-uv
36-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
36+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
3737
with:
3838
version: "latest"
3939
enable-cache: true

bakefile.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
class MyBakebook(PythonLibSpace):
1515
ci: bool = False
1616

17-
def lint(self, ctx: Context) -> None:
18-
ctx.run("uv run python scripts/sort_tags.py")
19-
ctx.run("uv run python scripts/check_tag_problems.py")
20-
super().lint(ctx)
17+
def lint(self) -> None:
18+
self.ctx.run("uv run python scripts/sort_tags.py")
19+
self.ctx.run("uv run python scripts/check_tag_problems.py")
20+
super().lint()
2121

22-
def test(self, ctx: Context) -> None:
22+
def test(self) -> None:
2323
tests_paths: list[str] = ["tests/", "leetcode/"]
24-
self._test(ctx, tests_paths=tests_paths)
24+
self._test(tests_paths=tests_paths)
2525

2626
def is_problem_exist(self, problem: str) -> Path:
2727
problem_path = Path(f"leetcode/{problem}")
@@ -32,10 +32,10 @@ def is_problem_exist(self, problem: str) -> Path:
3232
return problem_path
3333

3434
@command("p-test", help="Run problem specific tests")
35-
def problem_test(self, ctx: Context, problem: problem_option = PROBLEM):
35+
def problem_test(self, problem: problem_option = PROBLEM):
3636
problem_path = self.is_problem_exist(problem)
3737
tests_path = str(problem_path / "test_solution.py")
38-
self._test(ctx, tests_paths=tests_path, verbose=True, coverage_report=False)
38+
self._test(tests_paths=tests_path, verbose=True, coverage_report=False)
3939

4040
@command("p-gen", help="Generate specific problem")
4141
def problem_gen(

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ classifiers = [
2525
]
2626
dependencies = [
2727
"anytree>=2.13.0",
28-
"bakefile[lib]>=0.0.8",
2928
"cookiecutter>=2.6.0",
3029
"graphviz>=0.21",
3130
"json5>=0.13.0",
@@ -46,6 +45,7 @@ Repository = "https://github.com/wislertt/leetcode-py"
4645

4746
[dependency-groups]
4847
dev = [
48+
"bakefile[lib]>=0.0.8",
4949
"deptry>=0.24.0",
5050
"ipykernel>=7.0.0",
5151
"isort>=7.0.0",
@@ -60,7 +60,7 @@ dev = [
6060
]
6161

6262
[build-system]
63-
requires = ["uv_build>=0.9.18,<0.10.0"]
63+
requires = ["uv_build>=0.10.0,<0.11.0"]
6464
build-backend = "uv_build"
6565

6666
[tool.coverage.run]
@@ -72,6 +72,7 @@ omit = [
7272
known_first_party = ["leetcode_py"]
7373
extend_exclude = [
7474
".claude",
75+
"bakefile.py",
7576
"leetcode",
7677
"src/leetcode_py/cli/resources"
7778
]

src/leetcode_py/cli/commands/list.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def list_problems(
5555

5656
# Sort by problem number (convert to int for proper numerical sorting)
5757
problem_list.sort(
58-
key=lambda x: int(x[0].get("number", "999999"))
59-
if x[0].get("number", "?").isdigit()
60-
else 999999
58+
key=lambda x: (
59+
int(x[0].get("number", "999999")) if x[0].get("number", "?").isdigit() else 999999
60+
)
6161
)
6262

6363
# Update table title with count

uv.lock

Lines changed: 169 additions & 171 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)