Skip to content

Commit 33779a3

Browse files
authored
Remove PyCharm file watcher import sorting (#256)
1 parent 0641174 commit 33779a3

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

README.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff 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
-242 KB
Binary file not shown.

0 commit comments

Comments
 (0)