Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/pip/ruff-0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mkb79 authored Dec 26, 2024
2 parents 83df402 + a8596b0 commit 882910d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 29 deletions.
44 changes: 22 additions & 22 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,67 +6,67 @@
# the GitHub Action https://github.com/marketplace/actions/github-labeler.
- name: breaking
description: Breaking Changes
color: bfd4f2
color: "#bfd4f2"
- name: bug
description: Something isn't working
color: d73a4a
color: "#d73a4a"
- name: build
description: Build System and Dependencies
color: bfdadc
color: "#bfdadc"
- name: ci
description: Continuous Integration
color: 4a97d6
color: "#4a97d6"
- name: dependencies
description: Pull requests that update a dependency file
color: 0366d6
color: "#0366d6"
- name: documentation
description: Improvements or additions to documentation
color: 0075ca
color: "#0075ca"
- name: duplicate
description: This issue or pull request already exists
color: cfd3d7
color: "#cfd3d7"
- name: enhancement
description: New feature or request
color: a2eeef
color: "#a2eeef"
- name: github_actions
description: Pull requests that update Github_actions code
color: "000000"
color: "#000000"
- name: good first issue
description: Good for newcomers
color: 7057ff
color: "#7057ff"
- name: help wanted
description: Extra attention is needed
color: 008672
color: "#008672"
- name: invalid
description: This doesn't seem right
color: e4e669
color: "#e4e669"
- name: performance
description: Performance
color: "016175"
color: "#016175"
- name: python
description: Pull requests that update Python code
color: 2b67c6
color: "#2b67c6"
- name: question
description: Further information is requested
color: d876e3
color: "#d876e3"
- name: refactoring
description: Refactoring
color: ef67c4
color: "#ef67c4"
- name: removal
description: Removals and Deprecations
color: 9ae7ea
color: "#9ae7ea"
- name: style
description: Style
color: c120e5
color: "#c120e5"
- name: testing
description: Testing
color: b1fc6f
color: "#b1fc6f"
- name: skip-changelog
description: Skip pull request from release notes
color: 964B00
color: "#964B00"
- name: skip-stale
description: Skip issue or pull request to be marked as stale
color: 964B50
color: "#964B50"
- name: wontfix
description: This will not be worked on
color: ffffff
color: "#ffffff"
1 change: 1 addition & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ jobs:
- name: Run Labeler
uses: crazy-max/ghaction-github-labeler@v5.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
skip-delete: true
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
entry: end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
- id: ruff-check
name: ruff check
entry: ruff check
Expand All @@ -44,7 +44,7 @@ repos:
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
Expand Down
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def activate_virtualenv_in_precommit_hooks(session: Session) -> None:
text = hook.read_text()

if not any(
Path("A") == Path("a") and bindir.lower() in text.lower() or bindir in text
(Path("A") == Path("a") and bindir.lower() in text.lower())
or bindir in text
for bindir in bindirs
):
continue
Expand Down
2 changes: 1 addition & 1 deletion src/audible/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from .client import AsyncClient, Client


__all__ = ["__version__", "Authenticator", "log_helper", "Client", "AsyncClient"]
__all__ = ["AsyncClient", "Authenticator", "Client", "__version__", "log_helper"]
5 changes: 2 additions & 3 deletions src/audible/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@


def search_template(key: str, value: str) -> dict[str, str] | None:
for country in LOCALE_TEMPLATES:
locale = LOCALE_TEMPLATES[country]
if locale[key] == value:
for country, locale in LOCALE_TEMPLATES.items():
if locale.get(key, "") == value:
logger.debug("found locale for %s", country)
return locale

Expand Down

0 comments on commit 882910d

Please sign in to comment.