Skip to content
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

file cache conflict when both ruff and python black filewatcher is enabled #163

Open
ashanbrown opened this issue May 8, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@ashanbrown
Copy link

ashanbrown commented May 8, 2023

Describe the bug
I'm using python black as a formatter via the filewatcher mechanism.

To Reproduce
Steps to reproduce the behavior:

  1. Enable ruff plugin
  2. Add python filewatcher. My config is as follows:

image

3. Add a few extra lines to a python file after function definition and save it.

Expected behavior
I'd like to run the ruff fixes (in particular, import sorting), combined with python black, which I don't think is implemented as part of ruff.

Screenshots
image

Environments (please complete the following information):

  • IDE: PyCharm Professional Edition 2023.1
  • OS: macOS 13.3.1
  • Ruff Version 0.0.262
  • Plugin version 0.0.13

Additional context

@jankatins
Copy link

Can't help with the problem here, but I use https://plugins.jetbrains.com/plugin/14321-blackconnect as an interface to black and did not yet see any problems when using it together with this ruff plugin.

@ashanbrown
Copy link
Author

@jankatins I considered this option, but we use a number of repos, each with it's own development environment, and each one potentially uses a different version of python block. I don't think using a separate version of black per project is a mode that blackconnect supports.

@koxudaxi koxudaxi added the enhancement New feature or request label Jul 21, 2023
@koxudaxi
Copy link
Owner

I'm sorry for my late reply.
I will find a way to avoid the conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants