Skip to content

Including rules in extend-select does not work but including them in select works. #12345

Closed Answered by dhruvmanila
seanswyi asked this question in Q&A
Discussion options

You must be logged in to vote

This seems to be working for me. I've uploaded a zip file which contains a ruff.toml, test.py, and a .pre-commit-config.yaml.

Repro: mre.zip

Running pre-commit run --all-files would sort the imports in test.py and the config uses the extend-select key to include I rule.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@dhruvmanila
Comment options

@seanswyi
Comment options

@dhruvmanila
Comment options

Answer selected by seanswyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants