Skip to content

Commit

Permalink
Merge pull request #879 from Vaibhav159/vl_add_readme_for_ruff_format…
Browse files Browse the repository at this point in the history
…ter_in_pycharm

updating readme to support auto-formatting of ruff in pycharm
  • Loading branch information
aconchillo authored Dec 17, 2024
2 parents da3fb98 + 53049ad commit 146a341
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,15 @@ Install the
}
```

### PyCharm

`ruff` was installed in the `venv` environment described before, now to enable autoformatting on save, go to `File` -> `Settings` -> `Tools` -> `File Watchers` and add a new watcher with the following settings:
1. **Name**: `Ruff formatter`
2. **File type**: `Python`
3. **Working directory**: `$ContentRoot$`
4. **Arguments**: `format $FilePath$`
5. **Program**: `$PyInterpreterDirectory$/ruff`

## Contributing

We welcome contributions from the community! Whether you're fixing bugs, improving documentation, or adding new features, here's how you can help:
Expand Down

0 comments on commit 146a341

Please sign in to comment.