renovate[bot]
f237d36d2f
Update dependency black to v24.8.0 ( #12827 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [black](https://togithub.com/psf/black )
([changelog](https://togithub.com/psf/black/blob/main/CHANGES.md )) |
`==24.3.0` -> `==24.8.0` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>psf/black (black)</summary>
###
[`v24.8.0`](https://togithub.com/psf/black/blob/HEAD/CHANGES.md#2480 )
[Compare Source](https://togithub.com/psf/black/compare/24.4.2...24.8.0 )
##### Stable style
- Fix crash when `# fmt: off` is used before a closing parenthesis or
bracket. ([#​4363](https://togithub.com/psf/black/issues/4363 ))
##### Packaging
- Packaging metadata updated: docs are explictly linked, the issue
tracker is now also
linked. This improves the PyPI listing for Black.
([#​4345](https://togithub.com/psf/black/issues/4345 ))
##### Parser
- Fix regression where Black failed to parse a multiline f-string
containing another
multiline string
([#​4339](https://togithub.com/psf/black/issues/4339 ))
- Fix regression where Black failed to parse an escaped single quote
inside an f-string
([#​4401](https://togithub.com/psf/black/issues/4401 ))
- Fix bug with Black incorrectly parsing empty lines with a backslash
([#​4343](https://togithub.com/psf/black/issues/4343 ))
- Fix bugs with Black's tokenizer not handling `\{` inside f-strings
very well ([#​4422](https://togithub.com/psf/black/issues/4422 ))
- Fix incorrect line numbers in the tokenizer for certain tokens within
f-strings
([#​4423](https://togithub.com/psf/black/issues/4423 ))
##### Performance
- Improve performance when a large directory is listed in `.gitignore`
([#​4415](https://togithub.com/psf/black/issues/4415 ))
##### *Blackd*
- Fix blackd (and all extras installs) for docker container
([#​4357](https://togithub.com/psf/black/issues/4357 ))
###
[`v24.4.2`](https://togithub.com/psf/black/blob/HEAD/CHANGES.md#2442 )
[Compare Source](https://togithub.com/psf/black/compare/24.4.1...24.4.2 )
This is a bugfix release to fix two regressions in the new f-string
parser introduced in
24.4.1.
##### Parser
- Fix regression where certain complex f-strings failed to parse
([#​4332](https://togithub.com/psf/black/issues/4332 ))
##### Performance
- Fix bad performance on certain complex string literals
([#​4331](https://togithub.com/psf/black/issues/4331 ))
###
[`v24.4.1`](https://togithub.com/psf/black/blob/HEAD/CHANGES.md#2441 )
[Compare Source](https://togithub.com/psf/black/compare/24.4.0...24.4.1 )
##### Highlights
- Add support for the new Python 3.12 f-string syntax introduced by PEP
701 ([#​3822](https://togithub.com/psf/black/issues/3822 ))
##### Stable style
- Fix crash involving indented dummy functions containing newlines
([#​4318](https://togithub.com/psf/black/issues/4318 ))
##### Parser
- Add support for type parameter defaults, a new syntactic feature added
to Python 3.13
by PEP 696 ([#​4327](https://togithub.com/psf/black/issues/4327 ))
##### Integrations
- Github Action now works even when `git archive` is skipped
([#​4313](https://togithub.com/psf/black/issues/4313 ))
###
[`v24.4.0`](https://togithub.com/psf/black/blob/HEAD/CHANGES.md#2440 )
[Compare Source](https://togithub.com/psf/black/compare/24.3.0...24.4.0 )
##### Stable style
- Fix unwanted crashes caused by AST equivalency check
([#​4290](https://togithub.com/psf/black/issues/4290 ))
##### Preview style
- `if` guards in `case` blocks are now wrapped in parentheses when the
line is too long.
([#​4269](https://togithub.com/psf/black/issues/4269 ))
- Stop moving multiline strings to a new line unless inside brackets
([#​4289](https://togithub.com/psf/black/issues/4289 ))
##### Integrations
- Add a new option `use_pyproject` to the GitHub Action `psf/black`.
This will read the
Black version from `pyproject.toml`.
([#​4294](https://togithub.com/psf/black/issues/4294 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/astral-sh/ruff ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguMjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-12 09:56:28 +05:30
renovate[bot]
12f22b1fdd
Update dependency mdformat-mkdocs to v3 ( #12830 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [mdformat-mkdocs](https://togithub.com/kyleking/mdformat-mkdocs )
([changelog](https://togithub.com/kyleking/mdformat-mkdocs/releases )) |
`==2.0.4` -> `==3.0.0` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>kyleking/mdformat-mkdocs (mdformat-mkdocs)</summary>
###
[`v3.0.0`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v3.0.0 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.1.1...v3.0.0 )
##### What's Changed
-
refactor([#​25](https://togithub.com/kyleking/mdformat-mkdocs/issues/25 )):
support anchor links as a plugin in
[https://github.com/KyleKing/mdformat-mkdocs/pull/30 ](https://togithub.com/KyleKing/mdformat-mkdocs/pull/30 )
-
fix([#​33](https://togithub.com/kyleking/mdformat-mkdocs/issues/33 )):
render anchor links above a heading without newlines in
7c1e4892f5
and
4be7ca86af
- refactor!: rename according to syntax source (e.g. `material_*`,
`mkdocs_*`, `pymd_*` (python markdown), `mkdocstrings_*`) in
d6c465aa58
- feat: render HTML for cross-references in
a967d20c49
- ci: major improvements from template
(https://github.com/KyleKing/mdformat-plugin-template )
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.1.1...v3.0.0
###
[`v2.1.1`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v2.1.1 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.1.0...v2.1.1 )
##### What's Changed
-
fix([#​31](https://togithub.com/kyleking/mdformat-mkdocs/issues/31 )):
ignore HTML within Code Blocks by
[@​KyleKing](https://togithub.com/KyleKing ) in
[https://github.com/KyleKing/mdformat-mkdocs/pull/32 ](https://togithub.com/KyleKing/mdformat-mkdocs/pull/32 )
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.1.0...v2.1.1
###
[`v2.1.0`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v2.1.0 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.0.11...v2.1.0 )
##### What's Changed
-
feat([#​28](https://togithub.com/kyleking/mdformat-mkdocs/issues/28 )):
support "Abbreviations" by
[@​KyleKing](https://togithub.com/KyleKing ) in
[https://github.com/KyleKing/mdformat-mkdocs/pull/29 ](https://togithub.com/KyleKing/mdformat-mkdocs/pull/29 )
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.0.11...v2.1.0
###
[`v2.0.11`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v2.0.11 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.0.10...v2.0.11 )
##### Changes
-
fix([#​25](https://togithub.com/kyleking/mdformat-mkdocs/issues/25 )):
add support for "[markdown
anchors](https://mkdocstrings.github.io/autorefs/#markdown-anchors )"
syntax from the `mkdocs`
[autorefs](https://mkdocstrings.github.io/autorefs ) plugin
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.0.10...v2.0.11
###
[`v2.0.10`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v2.0.10 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.0.9...v2.0.10 )
Changes:
-
fix([#​24](https://togithub.com/kyleking/mdformat-mkdocs/issues/24 )):
respect ordered lists that start with `0.`
([#​26](https://togithub.com/kyleking/mdformat-mkdocs/issues/26 ))
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.0.9...v2.0.10
###
[`v2.0.9`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v2.0.9 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.0.8...v2.0.9 )
Changelog:
-
fix([#​23](https://togithub.com/kyleking/mdformat-mkdocs/issues/23 )):
ignore empty newlines when in fenced code blocks
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.0.8...v2.0.9
###
[`v2.0.8`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v2.0.8 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.0.7...v2.0.8 )
Changelog:
-
Fix([#​21](https://togithub.com/kyleking/mdformat-mkdocs/issues/21 )):
ignore lists in fenced code
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.0.7...v2.0.8
###
[`v2.0.7`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v2.0.7 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.0.6...v2.0.7 )
Changelog:
-
Fix([#​20](https://togithub.com/kyleking/mdformat-mkdocs/issues/20 )):
01a6916f41
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.0.6...v2.0.7
###
[`v2.0.6`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v2.0.6 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.0.5...v2.0.6 )
##### Changelog
- Resolve typo in CLI for
[#​19](https://togithub.com/kyleking/mdformat-mkdocs/issues/19 )
(3dc80a03f4
)
- Make `mdformat-wikilink` optional thanks to a quick release
([https://github.com/tmr232/mdformat-wikilink/issues/6 ](https://togithub.com/tmr232/mdformat-wikilink/issues/6 ))!
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.0.5...v2.0.6
###
[`v2.0.5`](https://togithub.com/KyleKing/mdformat-mkdocs/releases/tag/v2.0.5 )
[Compare
Source](https://togithub.com/kyleking/mdformat-mkdocs/compare/v2.0.4...v2.0.5 )
Changelog:
- Resolves
[#​19](https://togithub.com/kyleking/mdformat-mkdocs/issues/19 ).
Add `--ignore-missing-references` to prevent escaping brackets for
compatibility with python mkdocstrings
- feat: back-port `mdformat-wikilink` to Python 3.8 by default (see:
[https://github.com/tmr232/mdformat-wikilink/issues/6 ](https://togithub.com/tmr232/mdformat-wikilink/issues/6 ))
**Full Changelog**:
https://github.com/KyleKing/mdformat-mkdocs/compare/v2.0.5...v2.0.5
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/astral-sh/ruff ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguMjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-12 09:54:29 +05:30
renovate[bot]
cb364780b3
Update dependency mdformat-admon to v2.0.6 ( #12821 )
2024-08-12 01:59:14 +00:00
renovate[bot]
8822a79b4d
Update dependency PyYAML to v6.0.2 ( #12820 )
2024-08-11 20:19:14 -04:00
renovate[bot]
597c5f9124
Update dependency black to v24 ( #12728 )
2024-08-10 18:04:37 +05:30
Dhruv Manilawala
221ea662e0
Bump version to 0.5.7 ( #12756 )
2024-08-08 20:56:15 +05:30
Dhruv Manilawala
82e69ebf23
Update broken links in the documentation ( #12677 )
...
## Summary
Running `mkdocs server -f mkdocs.insiders.yml` gave warnings about these
broken links.
## Test plan
I built the docs locally and verified that the updated links work
properly.
2024-08-05 05:35:23 +00:00
DavideRagazzon
9ee44637ca
Fix typo in configuration docs ( #12655 )
2024-08-04 09:43:51 +02:00
Micha Reiser
da824ba316
Release Ruff 0.5.6 ( #12629 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-08-02 17:35:14 +02:00
Micha Reiser
012198a1b0
Enable notebooks by default in preview mode ( #12621 )
2024-08-02 13:36:53 +00:00
InSync
2e2b1b460f
Fix a typo in docs/editors/settings.md
( #12614 )
...
Diff:
```diff
-- `false: Same as`off\`
+- `false`: Same as `off`
```
2024-08-01 11:23:55 -05:00
Dhruv Manilawala
9495331a5f
Recommend client config for trace
setting in Neovim ( #12562 )
2024-07-29 06:14:34 +00:00
Dhruv Manilawala
fc16d8d04d
Bump version to 0.5.5 ( #12510 )
2024-07-25 20:17:01 +05:30
Dhruv Manilawala
c03f257ed7
Add note about the breaking change in nvim-lspconfig
( #12507 )
...
Refer https://github.com/astral-sh/ruff/issues/12408
2024-07-25 14:01:16 +00:00
Dhruv Manilawala
6bbb4a28c2
Add setup docs for Zed editor ( #12501 )
...
## Summary
This PR adds the setup documentation for using Ruff with the Zed editor.
Closes : #12388
2024-07-25 13:09:17 +00:00
Pathompong Kwangtong
a9f8bd59b2
Add Eglot setup guide for Emacs editor ( #12426 )
...
## Summary
The purpose of this change is to explain how to use ruff as a language
server in Eglot with automatic formatting because I've struggle to use
it with Eglot. I've search it online and found that there are some
people also struggle too. (See [this reddit
post](https://www.reddit.com/r/emacs/comments/118mo6w/eglot_automatic_formatting/ )
and
https://github.com/astral-sh/ruff-lsp/issues/19#issuecomment-1435138828 )
## Test Plan
I've use this setting myself. And I will continue maintain this part as
long as I use it.
---------
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2024-07-23 10:50:51 +05:30
Dhruv Manilawala
ea2d51c2bb
Add note to include notebook files for native server ( #12449 )
...
## Summary
Similar to https://github.com/astral-sh/ruff-vscode/pull/547 but for the
online docs.
Refer to https://github.com/astral-sh/ruff-vscode/issues/546
## Preview
<img width="1728" alt="Screenshot 2024-07-22 at 14 51 40"
src="https://github.com/user-attachments/assets/39014278-c868-45b0-9058-42858a060fd8 ">
2024-07-22 21:40:30 +05:30
Charlie Marsh
3664f85f45
Bump version to v0.5.4 ( #12423 )
2024-07-20 17:28:13 +00:00
FishAlchemist
c0a2b49bac
Fix the Github link error for Neovim in the setup for editors in the docs. ( #12410 )
...
## Summary
Fix Github link error for Neovim setup editors .
## Test Plan
Click Neovim Github link with mkdocs on local.
2024-07-19 16:24:12 -04:00
Dhruv Manilawala
8cfbac71a4
Bump version to 0.5.3 ( #12381 )
2024-07-18 16:07:34 +00:00
Dhruv Manilawala
a028ca22f0
Add VS Code specific extension settings ( #12380 )
...
## Summary
This PR adds VS Code specific extension settings in the online
documentation.
The content is basically taken from the `package.json` file in the
`ruff-vscode` repository.
2024-07-18 20:58:14 +05:30
Dhruv Manilawala
7953f6aa79
Update versioning policy for editor integration ( #12375 )
...
## Summary
Following the stabilization of the Ruff language server, we need to
update our versioning policy to account for any changes in it. This
could be server settings, capability, etc.
This PR also adds a new section for the VS Code extension which is
adopted from [Biome's versioning
policy](https://biomejs.dev/internals/versioning/#visual-studio-code-extension )
for the same.
---------
Co-authored-by: Zanie Blue <contact@zanie.dev>
2024-07-18 15:17:36 +00:00
Dhruv Manilawala
648cca199b
Add docs for Ruff language server ( #12344 )
...
## Summary
This PR adds documentation for the Ruff language server.
It mainly does the following:
1. Combines various READMEs containing instructions for different editor
setup in their respective section on the online docs
2. Provide an enumerated list of server settings. Additionally, it also
provides a section for VS Code specific options.
3. Adds a "Features" section which enumerates all the current
capabilities of the native server
For (2), the settings documentation is done manually but a future
improvement (easier after `ruff-lsp` is deprecated) is to move the docs
in to Rust struct and generate the documentation from the code itself.
And, the VS Code extension specific options can be generated by diffing
against the `package.json` in `ruff-vscode` repository.
### Structure
1. Setup: This section contains the configuration for setting up the
language server for different editors
2. Features: This section contains a list of capabilities provided by
the server along with short GIF to showcase it
3. Settings: This section contains an enumerated list of settings in a
similar format to the one for the linter / formatter
4. Migrating from `ruff-lsp`
> [!NOTE]
>
> The settings page is manually written but could possibly be
auto-generated via a macro similar to `OptionsMetadata` on the
`ClientSettings` struct
resolves : #11217
## Test Plan
Generate and open the documentation locally using:
1. `python scripts/generate_mkdocs.py`
2. `mkdocs serve -f mkdocs.insiders.yml`
2024-07-18 17:41:43 +05:30
Charlie Marsh
7a7c601d5e
Bump version to v0.5.2 ( #12316 )
2024-07-14 10:43:58 -04:00
Jack Desert
bbb9fe1692
[Docs] Clear instruction for single quotes (linter and formatter) ( #12015 )
...
## Summary
In order to use single quotes with both the ruff linter and the ruff
formatter,
two different rules must be applied. This was not clear to me when
internet searching "configure ruff single quotes" and it eventually
I filed this issue:
https://github.com/astral-sh/ruff/issues/12003
2024-07-10 16:29:29 +00:00
Dani Bodor
10f07d88a2
Update help and documentation for --output-format
to reflect "full"
default ( #12248 )
...
fix #12247
changed help to list "full" as the default for --output-format and
removed "text" as an option (as this is no longer supported).
2024-07-09 02:45:24 +00:00
Charlie Marsh
8198723201
Move SELinux docs to example ( #12211 )
2024-07-05 20:42:43 +00:00
Maximilian Kolb
7df10ea3e9
Docs: Respect SELinux with podman for docker mount ( #12102 )
...
Tested on Fedora 40 with Podman 5.1.1 and ruff "0.5.0" and "latest".
source: https://unix.stackexchange.com/q/651198
## Error without fix
````
$ podman run --rm -it -v .:/io ghcr.io/astral-sh/ruff:latest check
error: Failed to initialize cache at /io/.ruff_cache: Permission denied (os error 13)
warning: Encountered error: Permission denied (os error 13)
All checks passed!
$ podman run --rm -it -v .:/io ghcr.io/astral-sh/ruff:latest format
error: Failed to initialize cache at /io/.ruff_cache: Permission denied (os error 13)
error: Encountered error: Permission denied (os error 13)
````
## Summary
Running ruff by using a docker container requires `:Z` when mounting the
current directory on Fedora with SELinux and Podman.
## Test Plan
````
$ podman run --rm -it -v .:/io:Z ghcr.io/astral-sh/ruff:latest check
$ podman run --rm -it -v .:/io:Z ghcr.io/astral-sh/ruff:0.5.0 check
````
2024-07-05 15:39:00 -05:00
Dhruv Manilawala
1b3bff0330
Bump version to 0.5.1 ( #12205 )
2024-07-05 18:33:14 +05:30
Mathieu Kniewallner
5e7ba05612
docs(*): fix a few typos, consistency issues and links ( #12193 )
...
## Summary
Fixes a few typos, consistency issues and dead links found across the
documentation.
2024-07-04 19:05:51 -04:00
Micha Reiser
adfd78e05a
Correct parenthesized long nested-expressions example to match Ruff's output ( #12153 )
2024-07-03 10:03:08 +02:00
Dhruv Manilawala
0179ff97da
Add standalone installer instruction to docs ( #12081 )
...
Adopted from `uv` README
(https://github.com/astral-sh/uv#getting-started ), this PR adds a
section of using standalone installers in the installation section of
Ruff docs.
2024-06-28 11:34:46 +00:00
Étienne BERSAC
2336c078e2
Improve Emacs configuration ( #12070 )
...
Replace black and combine `ruff check --select=I --fix` and `ruff
format`.
2024-06-28 13:09:29 +05:30
Micha Reiser
a8b48fce7e
Release v0.5.0 ( #12068 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-06-27 14:46:44 +00:00
Micha Reiser
0917ce16f4
Update documentation to mention etcetera
crate instead of dirs
for user configuration discovery ( #12064 )
2024-06-27 13:44:11 +02:00
Auguste Lalande
8cc96d7868
Re-code flake8-trio and flake8-async rules to match upstream ( #10416 )
...
Co-authored-by: Micha Reiser <micha@reiser.io>
2024-06-27 13:44:11 +02:00
Charlie Marsh
117203f713
Read user configuration from ~/.config/ruff/ruff.toml
on macOS ( #11115 )
...
Co-authored-by: Micha Reiser <micha@reiser.io>
Closes https://github.com/astral-sh/ruff/issues/10739 .
2024-06-27 13:44:11 +02:00
Tibor Reiss
b24e4473c5
Remove deprecated configuration '--show-source` ( #9814 )
...
Co-authored-by: Micha Reiser <micha@reiser.io>
Fixes parts of https://github.com/astral-sh/ruff/issues/7650
2024-06-27 13:44:11 +02:00
baggiponte
55f4812051
docs: add and formatter
to CLI startup message ( #12042 )
...
Co-authored-by: Micha Reiser <micha@reiser.io>
2024-06-26 10:57:10 +00:00
Rune Lausen
79d72e6479
docs(integrations): fix link to python-lsp-server
( #11980 )
...
Co-authored-by: Rune Lausen <rune@lausennet.dk>
2024-06-22 13:17:50 +01:00
Will Yardley
690e94f4fb
ruff-check
: update docs for fix_only (#11959 )
2024-06-21 08:13:04 +02:00
Dhruv Manilawala
b54922fd73
Bump version to v0.4.10 ( #11953 )
2024-06-20 22:37:44 +05:30
Dhruv Manilawala
4f49e918a9
Bump version to v0.4.9 ( #11872 )
2024-06-14 20:36:22 +05:30
Yair Peretz
89bb07c251
UPDATE latest supported versions to 3.13 ( #11870 )
2024-06-14 12:35:33 +01:00
Charlie Marsh
0d06900cec
Fix isort FAQ to surface correct src setting ( #11829 )
...
## Summary
Closes https://github.com/astral-sh/ruff/issues/11722 . Based on feedback
in that issue.
2024-06-10 16:33:13 -04:00
Charlie Marsh
b98ab1b0b6
Add isort standard-library distinction to FAQ ( #11804 )
...
## Summary
Closes https://github.com/astral-sh/ruff/issues/11726 .
2024-06-08 16:10:50 -04:00
Dhruv Manilawala
a8cf7096ff
Bump version to v0.4.8 ( #11755 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-06-05 20:51:31 +05:30
Tobias Fischer
0ea2519e80
Add RDJson support. ( #11682 )
...
## Summary
Implement support for RDJson output for `ruff check`, as requested in
#8655 .
## Test Plan
Tested using a snapshot test. Same approach as for e.g. the JSON output
formatter.
## Additional info
I tried to keep the implementation close to the JSON implementation.
I had to deviate a bit to make the `suggestions` key work: If there are
no suggestions, then setting `suggestions` to `null` is invalid
according to the JSONSchema. Therefore, I opted for a slightly more
complex implementation, that skips the `suggestions` key entirely if
there are no fixes available for the given diagnostic. Maybe it would
have been easier to set `"suggestions": []`, but I ended up doing it
this way.
I didn't consider notebooks, as I _think_ that RDJson doesn't work with
notebooks. This should be confirmed, and if so, there should be some
form of warning or error emitted when trying to output diagnostics for a
notebook.
I also didn't consider `ruff format`, as this comment:
https://github.com/astral-sh/ruff/issues/8655#issuecomment-1811446160
suggests that that wouldn't be compatible.
I'm new to Rust, any feedback is appreciated. 🙂 I
implemented this in order to have a productive rainy saturday afternoon,
I'm not knowledgeable about RDJson beyond the sources linked in the
issue.
2024-06-02 17:59:57 +00:00
Charlie Marsh
1ad5f9c038
Bump version to v0.4.7 ( #11646 )
2024-05-31 16:30:36 -04:00
Charlie Marsh
49a5a9ccc2
Bump version to v0.4.6 ( #11585 )
2024-05-28 15:10:53 -04:00