You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#3736
Description:
- Replace `ms-python.black-formatter` with `astral-sh.ruff` in
`.devcontainer/devcontainer.json`
- Set Ruff as the default formatter for Python files in VS Code
devcontainer settings
- Remove the remaining Black-specific formatter configuration
Check list:
- [ ] New tests are added (if a new feature is added)
- [ ] New doc strings: description and/or example code are in RST format
- [ ] Documentation is updated (if required)
---------
Co-authored-by: vfdev <vfdev.5@gmail.com>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,8 +140,7 @@ please run lint checking and tests:
140
140
141
141
#### Checking Code Style
142
142
143
-
To ensure the codebase complies with the PEP8 style guide, we use [ruff](https://docs.astral.sh/ruff/)
144
-
and [black](https://black.readthedocs.io/en/stable/) to lint and format the codebase respectively.
143
+
To ensure the codebase complies with the PEP8 style guide, we use [ruff](https://docs.astral.sh/ruff/) to lint and [ruff format](https://docs.astral.sh/ruff/formatter/) to format the codebase.
145
144
146
145
##### Formatting the code
147
146
@@ -176,9 +175,8 @@ pre-commit install
176
175
git add .
177
176
git commit -m "Added awesome feature"
178
177
# DONT'T WORRY IF ERRORS ARE RAISED.
179
-
# YOUR CODE IS NOT COMPLIANT WITH flake8, µsort or black
180
-
# Fix any flake8 errors by following their suggestions
181
-
# µfmt will automatically format the files so they might look different, but you'll need to stage the files
0 commit comments