Bump ruff from 0.1.7 to 0.1.8
Bumps ruff from 0.1.7 to 0.1.8.
Release notes
Sourced from ruff's releases.
v0.1.8
Changes
This release includes opt-in support for formatting Python snippets within docstrings via the
docstring-code-format
setting. Check out the blog post for more details!Preview features
- Add
"preserve"
quote-style to mimic Black's skip-string-normalization (#8822)- Implement
prefer_splitting_right_hand_side_of_assignments
preview style (#8943)- [
pycodestyle
] Add fix forunexpected-spaces-around-keyword-parameter-equals
(#9072)- [
pycodestyle
] Add fix for comment-related whitespace rules (#9075)- [
pycodestyle
] Allowsys.path
modifications between imports (#9047)- [
refurb
] Implementhashlib-digest-hex
(FURB181
) (#9077)Rule changes
- Allow
flake8-type-checking
rules to automatically quote runtime-evaluated references (#6001)- Allow transparent cell magics in Jupyter Notebooks (#8911)
- [
flake8-annotations
] AvoidANN2xx
fixes for abstract methods with empty bodies (#9034)- [
flake8-self
] Ignore underscore references in type annotations (#9036)- [
pep8-naming
] Allow class names whenapps.get_model
is a non-string (#9065)- [
pycodestyle
] Allowmatplotlib.use
calls to intersperse imports (#9094)- [
pyflakes
] Support fixing unused assignments in tuples by renaming variables (F841
) (#9107)- [
pylint
] Add fix forsubprocess-run-without-check
(PLW1510
) (#6708)Formatter
- Add
docstring-code-format
knob to enable docstring snippet formatting (#8854)- Use double quotes for all docstrings, including single-quoted docstrings (#9020)
- Implement "dynamic" line width mode for docstring code formatting (#9098)
- Support reformatting Markdown code blocks (#9030)
- add support for formatting reStructuredText code snippets (#9003)
- Avoid trailing comma for single-argument with positional separator (#9076)
- Fix handling of trailing target comment (#9051)
CLI
- Hide unsafe fix suggestions when explicitly disabled (#9095)
- Add SARIF support to
--output-format
(#9078)Bug fixes
- Apply unnecessary index rule prior to enumerate rewrite (#9012)
- [
flake8-err-msg
] AllowEM
fixes even ifmsg
variable is defined (#9059)- [
flake8-pie
] Prevent keyword arguments duplication (#8450)- [
flake8-pie
] Respect trailing comma inunnecessary-dict-kwargs
(PIE804
) (#9015)- [
flake8-raise
] Avoid removing parentheses on ctypes.WinError (#9027)- [
isort
] Avoid invalid combination offorce-sort-within-types
andlines-between-types
(#9041)- [
isort
] Ensure that from-style imports are always ordered first in__future__
(#9039)- [
pycodestyle
] Allow tab indentation before keyword (#9099)
... (truncated)
Changelog
Sourced from ruff's changelog.
0.1.8
This release includes opt-in support for formatting Python snippets within docstrings via the
docstring-code-format
setting. Check out the blog post for more details!Preview features
- Add
"preserve"
quote-style to mimic Black's skip-string-normalization (#8822)- Implement
prefer_splitting_right_hand_side_of_assignments
preview style (#8943)- [
pycodestyle
] Add fix forunexpected-spaces-around-keyword-parameter-equals
(#9072)- [
pycodestyle
] Add fix for comment-related whitespace rules (#9075)- [
pycodestyle
] Allowsys.path
modifications between imports (#9047)- [
refurb
] Implementhashlib-digest-hex
(FURB181
) (#9077)Rule changes
- Allow
flake8-type-checking
rules to automatically quote runtime-evaluated references (#6001)- Allow transparent cell magics in Jupyter Notebooks (#8911)
- [
flake8-annotations
] AvoidANN2xx
fixes for abstract methods with empty bodies (#9034)- [
flake8-self
] Ignore underscore references in type annotations (#9036)- [
pep8-naming
] Allow class names whenapps.get_model
is a non-string (#9065)- [
pycodestyle
] Allowmatplotlib.use
calls to intersperse imports (#9094)- [
pyflakes
] Support fixing unused assignments in tuples by renaming variables (F841
) (#9107)- [
pylint
] Add fix forsubprocess-run-without-check
(PLW1510
) (#6708)Formatter
- Add
docstring-code-format
knob to enable docstring snippet formatting (#8854)- Use double quotes for all docstrings, including single-quoted docstrings (#9020)
- Implement "dynamic" line width mode for docstring code formatting (#9098)
- Support reformatting Markdown code blocks (#9030)
- add support for formatting reStructuredText code snippets (#9003)
- Avoid trailing comma for single-argument with positional separator (#9076)
- Fix handling of trailing target comment (#9051)
CLI
- Hide unsafe fix suggestions when explicitly disabled (#9095)
- Add SARIF support to
--output-format
(#9078)Bug fixes
- Apply unnecessary index rule prior to enumerate rewrite (#9012)
- [
flake8-err-msg
] AllowEM
fixes even ifmsg
variable is defined (#9059)- [
flake8-pie
] Prevent keyword arguments duplication (#8450)- [
flake8-pie
] Respect trailing comma inunnecessary-dict-kwargs
(PIE804
) (#9015)- [
flake8-raise
] Avoid removing parentheses on ctypes.WinError (#9027)- [
isort
] Avoid invalid combination offorce-sort-within-types
andlines-between-types
(#9041)- [
isort
] Ensure that from-style imports are always ordered first in__future__
(#9039)
... (truncated)
Commits
-
c014622
Bump version to v0.1.8 (#9116) -
b6fb972
config: add newdocstring-code-format
knob (#8854) -
18452cf
Addas_slice
method for all string nodes (#9111) -
cb99815
Feature: Add SARIF output support (#9078) -
45f6030
prefer_splitting_right_hand_side_of_assignments
preview style (#8943) -
1a65e54
Allowflake8-type-checking
rules to automatically quote runtime-evaluated r... -
4d2ee5b
Add named expression handling tofind_assigned_value
(#9109) -
8314c8b
[typing
] Addfind_assigned_value
helper func totyping.rs
to retrieve v... -
cb201bc
PIE804
: Prevent keyword arguments duplication (#8450) -
6c0068e
RemoveExprFormattedValue
formatting impl (#9108) - Additional commits viewable in compare view