Skip to content

Conversation

@neutrinoceros
Copy link
Collaborator

  • MNT/SEC: configure pre-commit + zizmor
  • SEC: zizmor autofixes
  • SEC: pin GHA exactly
  • MNT: (temporarily ?) turn off zizmor's use-trusted-publishing lint rule
  • SEC: turn off default GHA permissions
  • TST: add a CI job to run pre-commit

This will also set a fundation for migrating from flake8+black to ruff for Python linting and formatting through pre-commit.
Ideally I would like to set up pre-commit.ci as an external service, though I don't have sufficient permissions to do it on my own so I sent a request (but I'm unsure who's going to receive it). In the mean time I set up a GHA-based job to ensure it's run in CI.

merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 # zizmor: ignore[use-trusted-publishing]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ideally we would also setup trusted publishing, but this requires clearance on the PyPI side, which I do not have, so I'm ignoring the rule for now.

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.

1 participant