Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: update pre-commit hooks#957

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall 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
1 change: 0 additions & 1 deletion.github/workflows/pr.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -73,7 +73,6 @@ jobs:
- name: ruff
run: |
python -m ruff check . \
--config pyproject.toml \
--diff \
--output-format=full \
--exit-non-zero-on-fix
Expand Down
27 changes: 7 additions & 20 deletions.pre-commit-config.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,15 +13,13 @@ repos:

# Security & credential scanning/alerting
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: debug-statements
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
- id: check-builtin-literals
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: check-toml
- id: check-case-conflict
Expand All@@ -31,47 +29,36 @@ repos:
- id: mixed-line-ending
- id: check-ast

# Formatters that may modify source files automatically
- repo: https://github.com/astral-sh/ruff-pre-commit
# Keep old ruff formatting rules until other merge requests are completed
rev: v0.1.11
hooks:
- id: ruff-format
name: ruff (format)
args: ["."]
pass_filenames: false

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: ["black==23.10.1"]

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
rev: v3.16.0
hooks:
- id: pyupgrade
args: ["--py38-plus", "--keep-runtime-typing"]

# Linters and validation
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
rev: v0.4.9
hooks:
- id: ruff
name: ruff (lint)
args:
- "--fix"
- "--exit-non-zero-on-fix"
- "--statistics"
- "--output-format=text"
- "."
pass_filenames: false
- "--output-format=full"
- id: ruff-format
name: ruff (format)

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.9.0"
rev: "v1.10.0"
hooks:
- id: mypy
args: ["--config-file", "pyproject.toml"]
additional_dependencies:
- "pydantic>=2,<3"
- "types-requests"
Expand Down
2 changes: 1 addition & 1 deletiondocs/configuration.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -107,7 +107,7 @@ If a setting is not provided, than PSR will fill in the value with the default v
Python Semantic Release expects a root level key to start the configuration definition. Make
sure to use the correct root key dependending on the configuration format you are using.

.. note:: If you are using ``pyproject.toml``, this heading should include the `tool`` prefix
.. note:: If you are using ``pyproject.toml``, this heading should include the ``tool`` prefix
as specified within PEP 517, resulting in ``[tool.semantic_release]``.

.. note:: If you are using a ``releaserc.toml``, use ``[semantic_release]`` as the root key
Expand Down
1 change: 0 additions & 1 deletionpyproject.toml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -282,7 +282,6 @@ ignore = [
]

external = ["V"]
ignore-init-module-imports = true
task-tags = ["NOTE", "TODO", "FIXME", "XXX"]

[tool.ruff.format]
Expand Down
2 changes: 1 addition & 1 deletionsemantic_release/cli/commands/publish.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,4 +63,4 @@ def publish(cli_ctx: CliContextObj, tag: str = "latest") -> None:

log.info("Uploading distributions to release")
for pattern in dist_glob_patterns:
hvcs_client.upload_dists(tag=tag, dist_glob=pattern)
hvcs_client.upload_dists(tag=tag, dist_glob=pattern) # type: ignore[attr-defined]
2 changes: 1 addition & 1 deletionsemantic_release/cli/config.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -558,7 +558,7 @@ def from_raw_config(
# with our forced empty value at the end which can be dropped
parts = [*env_var_def.split("=", 1), ""]
# removes any odd spacing around =, and extracts name=value
name, env_val =[part.strip() for part in parts[:2]]
name, env_val =(part.strip() for part in parts[:2])

if not name:
# Skip when invalid format (ex. starting with = and no name)
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp