Bump ruff from 0.3.5 to 0.3.6
Bumps ruff from 0.3.5 to 0.3.6.
Release notes
Sourced from ruff's releases.
v0.3.6
Changes
Preview features
- [
pylint
] Implementbad-staticmethod-argument
(PLW0211
) (#10781)- [
pylint
] Implementif-stmt-min-max
(PLR1730
,PLR1731
) (#10002)- [
pyupgrade
] Replacestr,Enum
multiple inheritance withStrEnum
UP042
(#10713)- [
refurb
] Implementif-expr-instead-of-or-operator
(FURB110
) (#10687)- [
refurb
] Implementint-on-sliced-str
(FURB166
) (#10650)- [
refurb
] Implementwrite-whole-file
(FURB103
) (#10802)- [
refurb
] Supportitemgetter
inreimplemented-operator
(FURB118
) (#10526)- [
flake8_comprehensions
] Addsum
/min
/max
to unnecessary comprehension check (C419
) (#10759)Rule changes
- [
pydocstyle
] Require capitalizing docstrings where the first sentence is a single word (D403
) (#10776)- [
pycodestyle
] Ignore annotated lambdas in class scopes (E731
) (#10720)- [
flake8-pyi
] Various improvements to PYI034 (#10807)- [
flake8-slots
] Flag subclasses of call-basedtyping.NamedTuple
s as well as subclasses ofcollections.namedtuple()
(SLOT002
) (#10808)- [
pyflakes
] Allow forward references in class bases in stub files (F821
) (#10779)- [
pygrep-hooks
] Improveblanket-noqa
error message (PGH004
) (#10851)CLI
- Support
FORCE_COLOR
env var (#10839)Configuration
- Support negated patterns in
[extend-]per-file-ignores
(#10852)Bug fixes
- [
flake8-import-conventions
] Accept non-aliased (but correct) import inunconventional-import-alias
(ICN001
) (#10729)- [
flake8-quotes
] Add semantic model flag when inside f-string replacement field (#10766)- [
pep8-naming
] Recursively resolveTypeDicts
for N815 violations (#10719)- [
flake8-quotes
] RespectQ00*
ignores inflake8-quotes
rules (#10728)- [
flake8-simplify
] Show negated condition inneedless-bool
diagnostics (SIM103
) (#10854)- [
ruff
] Use within-scope shadowed bindings inasyncio-dangling-task
(RUF006
) (#10793)- [
flake8-pytest-style
] Fix single-tuple conversion inpytest-parametrize-values-wrong-type
(PT007
) (#10862)- [
flake8-return
] Ignore assignments to annotated variables inunnecessary-assign
(RET504
) (#10741)- [
refurb
] Do not allow any keyword arguments forread-whole-file
inrb
mode (FURB101
) (#10803)- [
pylint
] Don't recommend decorating staticmethods with@singledispatch
(PLE1519
,PLE1520
) (#10637)- [
pydocstyle
] Use section name range for all section-related docstring diagnostics (#10740)- Respect
# noqa
directives on__all__
openers (#10798)Contributors
... (truncated)
Changelog
Sourced from ruff's changelog.
0.3.6
Preview features
- [
pylint
] Implementbad-staticmethod-argument
(PLW0211
) (#10781)- [
pylint
] Implementif-stmt-min-max
(PLR1730
,PLR1731
) (#10002)- [
pyupgrade
] Replacestr,Enum
multiple inheritance withStrEnum
UP042
(#10713)- [
refurb
] Implementif-expr-instead-of-or-operator
(FURB110
) (#10687)- [
refurb
] Implementint-on-sliced-str
(FURB166
) (#10650)- [
refurb
] Implementwrite-whole-file
(FURB103
) (#10802)- [
refurb
] Supportitemgetter
inreimplemented-operator
(FURB118
) (#10526)- [
flake8_comprehensions
] Addsum
/min
/max
to unnecessary comprehension check (C419
) (#10759)Rule changes
- [
pydocstyle
] Require capitalizing docstrings where the first sentence is a single word (D403
) (#10776)- [
pycodestyle
] Ignore annotated lambdas in class scopes (E731
) (#10720)- [
flake8-pyi
] Various improvements to PYI034 (#10807)- [
flake8-slots
] Flag subclasses of call-basedtyping.NamedTuple
s as well as subclasses ofcollections.namedtuple()
(SLOT002
) (#10808)- [
pyflakes
] Allow forward references in class bases in stub files (F821
) (#10779)- [
pygrep-hooks
] Improveblanket-noqa
error message (PGH004
) (#10851)CLI
- Support
FORCE_COLOR
env var (#10839)Configuration
- Support negated patterns in
[extend-]per-file-ignores
(#10852)Bug fixes
- [
flake8-import-conventions
] Accept non-aliased (but correct) import inunconventional-import-alias
(ICN001
) (#10729)- [
flake8-quotes
] Add semantic model flag when inside f-string replacement field (#10766)- [
pep8-naming
] Recursively resolveTypeDicts
for N815 violations (#10719)- [
flake8-quotes
] RespectQ00*
ignores inflake8-quotes
rules (#10728)- [
flake8-simplify
] Show negated condition inneedless-bool
diagnostics (SIM103
) (#10854)- [
ruff
] Use within-scope shadowed bindings inasyncio-dangling-task
(RUF006
) (#10793)- [
flake8-pytest-style
] Fix single-tuple conversion inpytest-parametrize-values-wrong-type
(PT007
) (#10862)- [
flake8-return
] Ignore assignments to annotated variables inunnecessary-assign
(RET504
) (#10741)- [
refurb
] Do not allow any keyword arguments forread-whole-file
inrb
mode (FURB101
) (#10803)- [
pylint
] Don't recommend decorating staticmethods with@singledispatch
(PLE1519
,PLE1520
) (#10637)- [
pydocstyle
] Use section name range for all section-related docstring diagnostics (#10740)- Respect
# noqa
directives on__all__
openers (#10798)
Commits
-
4e8a846
Bump version to v0.3.6 (#10883) -
ffea1bb
[refurb
] Implementwrite-whole-file
(FURB103
) (#10802) -
ac14d18
Updateclearscreen
to v3.0.0 (#10869) -
1eee6f1
[flake8-pytest-style
] Fix single-tuple conversion in `pytest-parametrize-va... -
de46a36
[pygrep-hooks
] Improveblanket-noqa
error message (PGH004
) (#10851) -
dbf8d0c
Show negated condition inneedless-bool
diagnostics (#10854) -
02e88fd
Support negated patterns in [extend-]per-file-ignores (#10852) -
42d52eb
Support FORCE_COLOR env var (#10839) -
3fd2297
Update pre-commit dependencies (#10822) -
e13e57e
Localize cleanup for FunctionDef and ClassDef (#10837) - Additional commits viewable in compare view