Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
pre-commit-ci[bot] wants to merge 2 commits intomainfrom
pre-commit-ci-update-config
Open

[pre-commit.ci] pre-commit autoupdate#14175
pre-commit-ci[bot] wants to merge 2 commits intomainfrom
pre-commit-ci-update-config

Conversation

@pre-commit-ci
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Feb 9, 2026

updates:

@Pierre-Sassoulas Pierre-Sassoulas force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 6549b7e to e7092a9 Compare February 13, 2026 07:34
@Pierre-Sassoulas
Copy link
Member

I think this is good to go, enabling the new ruff message about using context manager can probably constitute a merge request on its own.

@Pierre-Sassoulas Pierre-Sassoulas added the skip news used on prs to opt out of the changelog requirement label Feb 14, 2026
directory = "misc"
name = "Miscellaneous internal changes"
showcontent = true
type = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather move this to a towncrier.toml than have this weird formatting..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pyproject-fmt gets more and more developer-hostile. i started to drop it from projects as ever since 2.x it messes up more and more things

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's freeze it ? Might need to fork it so it's not upgraded automatically by pre-commit

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never liked it for myself so I'd normally just avoid integrating it in the first place. Though, it's my problem with most of the "opinionated" tools...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forked the pyproject-fmt project and pushed the v2.12.1 tag to our fork so we can have auto-formatting without the opinionated changes.

@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from e7092a9 to 30cae01 Compare February 16, 2026 20:52
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the pre-commit-ci-update-config branch from c5ae88f to 167ca3f Compare February 16, 2026 22:13
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 167ca3f to cc6dac9 Compare February 23, 2026 21:24
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the pre-commit-ci-update-config branch 3 times, most recently from 9fd6b83 to c6e3a59 Compare February 27, 2026 09:17
pyproject.toml Outdated
"PLW2901", # for loop variable overwritten by assignment target
# ruff ignore
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"RUF061", # Use context-manager form of `pytest.raises()`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ignore this globally? I'd only disable it inline in a few places where the other format is being tested.

pyproject.toml Outdated
lint.per-file-ignores."src/_pytest/_version.py" = [
"I001",
]
lint.per-file-ignores."testing/**/*.py" = [ "RUF060" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this also deserves a justification. Dunno what this rule number is...


def get_file_part_from_node_id(x: str) -> str:
return x.split("::")[0]
return x.split("::", maxsplit=1)[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a formatting change — do we need a change note mentioning refactoring?

# Creation time of this instant, using time.time(), to measure actual time.
# Note: using a `lambda` to correctly get the mocked time via `MockTiming`.
time: float = dataclasses.field(default_factory=lambda: time(), init=False)
time: float = dataclasses.field(default_factory=lambda: time(), init=False) # noqa: PLW0108
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a justification comment explaining what the rule demands?

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.4](astral-sh/ruff-pre-commit@v0.14.14...v0.15.4)
- [github.com/tox-dev/pyproject-fmt: v2.12.1 → v2.16.2](tox-dev/pyproject-fmt@v2.12.1...v2.16.2)
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from c6e3a59 to 70abc5a Compare March 2, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news used on prs to opt out of the changelog requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants