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

Auto-usage of black on filesave #27

Open
gatto opened this issue Mar 24, 2022 · 5 comments
Open

Auto-usage of black on filesave #27

gatto opened this issue Mar 24, 2022 · 5 comments

Comments

@gatto
Copy link

gatto commented Mar 24, 2022

Hello! I think I've gathered that black cannot automatically run on save. Then, how is black used with this extension? Thank you.

(please, besides the question, if you could consider this issue as a request for auto-black on save? )

@mmshivesh
Copy link
Owner

This is an issue because Nova doesn't support the particular Language server commands, check #20 . Sadly, the only way for now seems to be to manually run it as a task using the in-built Nova task runners.

@hpowers
Copy link

hpowers commented Mar 27, 2022

How do you manually run it as a task using the in-built Nova task runners?

@shicholas
Copy link

I think it's the same thing as the play button at the top of the screen. You can define a custom task that does something like:

black .
isort .

etc.

@mmshivesh
Copy link
Owner

I'm guessing you can also set it up as a build action that runs before your actual code.

@shicholas
Copy link

yes like a build step

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

No branches or pull requests

4 participants