Skip to content

Commit 422b261

Browse files
MAINT: upgrade lock files (#243)
* FIX: remove `url` from `repo.get_languages()`
1 parent 374cac0 commit 422b261

5 files changed

Lines changed: 382 additions & 370 deletions

File tree

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ updates:
1212
labels: [⬆️ Lock]
1313
multi-ecosystem-group: lock
1414
patterns: ["*"]
15+
- package-ecosystem: pre-commit
16+
directory: "/"
17+
labels: [⬆️ Lock]
18+
multi-ecosystem-group: lock
19+
patterns: ["*"]
1520
- package-ecosystem: uv
1621
directory: "/"
1722
labels: [⬆️ Lock]

.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: check-useless-excludes
1515

1616
- repo: https://github.com/ComPWA/policy
17-
rev: 0.8.7
17+
rev: 0.8.9
1818
hooks:
1919
- id: check-dev-files
2020
args:
@@ -27,7 +27,7 @@ repos:
2727
- --type-checker=ty
2828

2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.15.2
30+
rev: v0.15.10
3131
hooks:
3232
- id: ruff-check
3333
args: [--fix]
@@ -68,14 +68,14 @@ repos:
6868
- id: taplo-format
6969

7070
- repo: https://github.com/pappasam/toml-sort
71-
rev: v0.24.3
71+
rev: v0.24.4
7272
hooks:
7373
- id: toml-sort
7474
args:
7575
- --in-place
7676

7777
- repo: https://github.com/sirosen/check-jsonschema
78-
rev: 0.36.2
78+
rev: 0.37.1
7979
hooks:
8080
- id: check-jsonschema
8181
name: Check project inventory YAML files
@@ -85,12 +85,13 @@ repos:
8585
args: ["--schemafile", "./docs/software/project-inventory-schema.json"]
8686

8787
- repo: https://github.com/streetsidesoftware/cspell-cli
88-
rev: v9.7.0
88+
rev: v10.0.0
8989
hooks:
9090
- id: cspell
91+
language_version: 25.9.0
9192

9293
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
93-
rev: 3.6.0
94+
rev: 3.6.1
9495
hooks:
9596
- id: editorconfig-checker
9697
name: editorconfig
@@ -111,6 +112,6 @@ repos:
111112
types_or: [python, pyi, jupyter]
112113

113114
- repo: https://github.com/astral-sh/uv-pre-commit
114-
rev: 0.10.5
115+
rev: 0.11.6
115116
hooks:
116117
- id: uv-lock

src/pwa_pages/repo/_github.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def get_last_modified(repo: GithubRepository) -> datetime:
6969
@lru_cache
7070
def get_languages(repo: GithubRepository) -> dict[str, float]:
7171
languages = repo.get_languages()
72+
languages.pop("url", None)
7273
total_lines = sum(languages.values())
7374
return {
7475
language: 100 * lines / total_lines for language, lines in languages.items()

tests/repo/test_github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_extract_github_repo_name_error(url):
6161

6262
def test_get_github_repo():
6363
repo = get_github_repo("https://github.com/ComPWA/ComPWA")
64-
languages = list(repo.get_languages())
64+
languages = [x for x in repo.get_languages() if x != "url"]
6565
assert languages[0] == "C++"
6666

6767

0 commit comments

Comments
 (0)