Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #2462

Merged
merged 2 commits into from
Dec 6, 2023
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
exclude: ^(src/pdm/models/in_process/.*\.py|install-pdm\.py)$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.4'
rev: 'v0.1.6'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand All @@ -21,7 +21,7 @@ repos:
- id: codespell # See setup.cfg for args

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.7.1
hooks:
- id: mypy
args: [src]
Expand Down
2 changes: 1 addition & 1 deletion src/pdm/project/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def __setitem__(self, key: str, value: Any) -> None:
if len(parts) < 3:
raise PdmUsageError(f"Set {parts[0]} config with [success]{parts[0]}.{{name}}.{{attr}}")
index_key = ".".join(parts[:2])
username = self._data.get(index_key, {}).get("username")
username = self._data.get(index_key, {}).get("username") # type: ignore[call-overload]
service = f'pdm-{index_key.replace(".", "-")}'
if parts[2] == "password" and self.is_global and keyring.save_auth_info(service, username, value):
return
Expand Down