Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ updates:
labels: [⬆️ Lock]
multi-ecosystem-group: lock
patterns: ["*"]
- package-ecosystem: pre-commit
directory: "/"
labels: [⬆️ Lock]
multi-ecosystem-group: lock
patterns: ["*"]
- package-ecosystem: uv
directory: "/"
labels: [⬆️ Lock]
Expand Down
15 changes: 8 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.8.7
rev: 0.8.9
hooks:
- id: check-dev-files
args:
Expand All @@ -27,7 +27,7 @@ repos:
- --type-checker=ty

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.2
rev: v0.15.10
hooks:
- id: ruff-check
args: [--fix]
Expand Down Expand Up @@ -68,14 +68,14 @@ repos:
- id: taplo-format

- repo: https://github.com/pappasam/toml-sort
rev: v0.24.3
rev: v0.24.4
hooks:
- id: toml-sort
args:
- --in-place

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

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.7.0
rev: v10.0.0
hooks:
- id: cspell
language_version: 25.9.0

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.6.0
rev: 3.6.1
hooks:
- id: editorconfig-checker
name: editorconfig
Expand All @@ -111,6 +112,6 @@ repos:
types_or: [python, pyi, jupyter]

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.5
rev: 0.11.6
hooks:
- id: uv-lock
1 change: 1 addition & 0 deletions src/pwa_pages/repo/_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def get_last_modified(repo: GithubRepository) -> datetime:
@lru_cache
def get_languages(repo: GithubRepository) -> dict[str, float]:
languages = repo.get_languages()
languages.pop("url", None)
total_lines = sum(languages.values())
return {
language: 100 * lines / total_lines for language, lines in languages.items()
Expand Down
2 changes: 1 addition & 1 deletion tests/repo/test_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_extract_github_repo_name_error(url):

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


Expand Down
Loading
Loading