Skip to content

fix: ignore e402 and pre-commit uses ruff.toml config #7634

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CakeCrusher
Copy link
Contributor

@CakeCrusher CakeCrusher commented May 20, 2025

Tutorial files like in the case of the #7636 the instrumentation wrappers need to be executed before corresponding modules are imported. In cases like these the ruff formatting rules like e402 prohibit this import flow.

I have created a ruff.toml file that ignores e402 for tutorial/ files and updated .pre-commit.config.yaml to use that config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
Status: 📘 Todo
Development

Successfully merging this pull request may close these issues.

1 participant