Skip to content

Manual monthly pre-commit update - #309

Merged
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:ruff-0.16
Aug 4, 2026
Merged

Manual monthly pre-commit update#309
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:ruff-0.16

Conversation

@eerovaher

Copy link
Copy Markdown
Collaborator

The automatic monthly pre-commit update (#308) failed because Ruff 0.16 changed which lint rules are enabled by default. I added a few (temporary) ignores to the Ruff configuration so that pre-commit checks could succeed.

Closes #308

Ruff 0.16 changed which lint rules are enabled by default. A couple of
the newly enabled rules were simple to enforce, but some of the others
are ignored for now to allow `pre-commit` checks to succeed.
Comment thread docs/conf.py

try:
from sphinx_astropy.conf.v1 import * # noqa: F403
from sphinx_astropy.conf.v1 import *

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

F403 is no longer enforced by default.

Comment thread setup.py
include_dirs = [np.get_include()]
libraries = []
if int(os.environ.get("PYERFA_USE_SYSTEM_LIBERFA", 0)):
if int(os.environ.get("PYERFA_USE_SYSTEM_LIBERFA", "0")):

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

PLW1508 (invalid-envvar-default) is now turned on by default, but it was simpler to enforce it than to configure Ruff to ignore it.

@avalentino
avalentino merged commit e38f03a into liberfa:main Aug 4, 2026
27 checks passed
@avalentino

Copy link
Copy Markdown
Member

Thanks a lot @eerovaher
In the last period you are the most active contributor.
If you are interested, an everybody in @liberfa/pyerfa-maintainers agrees, I would be happy to give you commit access to the repository.

@eerovaher

Copy link
Copy Markdown
Collaborator Author

It is not clear to me what I would benefit from having write access to this repository because someone else would still have to review my PRs. However, triage permissions would be useful because then I could add labels to my PRs myself.

@eerovaher
eerovaher deleted the ruff-0.16 branch August 5, 2026 20:45
@avalentino

Copy link
Copy Markdown
Member

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants