File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed
Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -470,29 +470,8 @@ formatting into PyCharm.
470470 - ** Check** : Run Ruff when the python file is saved
471471 - ** Check** : Use ruff format
472472
473- Now, on <kbd >ctrl+s</kbd >, the current source file will be automatically formatted on save.
474-
475- ### Import Sorting
476-
477- 1 . Ensure that the [ File Watchers Plugin] ( https://plugins.jetbrains.com/plugin/7177-file-watchers )
478- is installed.
479- 2 . Open Preferences or Settings | Tools | File Watchers and select ` + ` | ` <custom> `
480-
481- ![ ] ( docs/static/images/preferences.png )
482-
483- 3 . Fill in the following fields
484- - ** Name** : ` ruff check --select I --fix `
485- - ** File Type** : Python
486- - ** Scope** : Project Files
487- - ** Program** : ` $PyInterpreterDirectory$/python `
488- - ** Arguments** : ` -m ruff check --select I --fix $FilePath$ `
489- - ** Output paths to refresh** : ` $FilePath$ `
490- - ** Working directory** : ` $ProjectFileDir$ `
491- - ** Advanced Options**
492- - ** Uncheck** : Auto-save edited files to trigger the watcher
493- - ** Uncheck** : Trigger the watcher on external changes
494-
495- ![ ] ( docs/static/images/file_watcher.png )
473+ Now, on <kbd >ctrl+s</kbd >, the current source file will be automatically formatted and imports
474+ sorted on save.
496475
497476> [ !TIP]
498477> These tools work best if you properly mark directories as excluded from the project that should
You can’t perform that action at this time.
0 commit comments