datamodel-code-generator
datamodel-code-generator copied to clipboard
Bump ruff from 0.2.0 to 0.2.2
Bumps ruff from 0.2.0 to 0.2.2.
Release notes
Sourced from ruff's releases.
v0.2.2
Highlights include:
- Initial support formatting f-strings (in
--preview).- Support for overriding arbitrary configuration options via the CLI through an expanded
--configargument (e.g.,--config "lint.isort.combine-as-imports=false").- Significant performance improvements in Ruff's lexer, parser, and lint rules.
Changes
Preview features
- Implement minimal f-string formatting (#9642)
- [
pycodestyle] Add blank line(s) rules (E301,E302,E303,E304,E305,E306) (#9266)- [
refurb] Implementreadlines_in_for(FURB129) (#9880)Rule changes
- [
ruff] Ensure closing parentheses for multiline sequences are always on their own line (RUF022,RUF023) (#9793)- [
numpy] Add missing deprecation violations (NPY002) (#9862)- [
flake8-bandit] Detectmark_safeusages in decorators (#9887)- [
ruff] Expandasyncio-dangling-task(RUF006) to includenew_event_loop(#9976)- [
flake8-pyi] Ignore 'unused' private type dicts in class scopes (#9952)Formatter
- Docstring formatting: Preserve tab indentation when using
indent-style=tabs(#9915)- Disable top-level docstring formatting for notebooks (#9957)
- Stabilize quote-style's
preservemode (#9922)CLI
- Allow arbitrary configuration options to be overridden via the CLI (#9599)
Bug fixes
- Make
show-settingsfilters directory-agnostic (#9866)- Respect duplicates when rewriting type aliases (#9905)
- Respect tuple assignments in typing analyzer (#9969)
- Use atomic write when persisting cache (#9981)
- Use non-parenthesized range for
DebugText(#9953)- [
flake8-simplify] Avoid false positive withasyncfor loops (SIM113) (#9996)- [
flake8-trio] Respectasync withintimeout-without-await(#9859)- [
perflint] Catch a wider range of mutations inPERF101(#9955)- [
pycodestyle] FixE30Xpanics on blank lines with trailing white spaces (#9907)- [
pydocstyle] Allow usingparametersas a subsection header (D405) (#9894)- [
pydocstyle] Fix blank-line docstring rules for module-level docstrings (#9878)- [
pylint] Accept 0.0 and 1.0 as common magic values (PLR2004) (#9964)- [
pylint] Avoid suggesting set rewrites for non-hashable types (#9956)- [
ruff] Avoid false negatives with string literals inside of method calls (RUF027) (#9865)
... (truncated)
Changelog
Sourced from ruff's changelog.
0.2.2
Highlights include:
- Initial support formatting f-strings (in
--preview).- Support for overriding arbitrary configuration options via the CLI through an expanded
--configargument (e.g.,--config "lint.isort.combine-as-imports=false").- Significant performance improvements in Ruff's lexer, parser, and lint rules.
Preview features
- Implement minimal f-string formatting (#9642)
- [
pycodestyle] Add blank line(s) rules (E301,E302,E303,E304,E305,E306) (#9266)- [
refurb] Implementreadlines_in_for(FURB129) (#9880)Rule changes
- [
ruff] Ensure closing parentheses for multiline sequences are always on their own line (RUF022,RUF023) (#9793)- [
numpy] Add missing deprecation violations (NPY002) (#9862)- [
flake8-bandit] Detectmark_safeusages in decorators (#9887)- [
ruff] Expandasyncio-dangling-task(RUF006) to includenew_event_loop(#9976)- [
flake8-pyi] Ignore 'unused' private type dicts in class scopes (#9952)Formatter
- Docstring formatting: Preserve tab indentation when using
indent-style=tabs(#9915)- Disable top-level docstring formatting for notebooks (#9957)
- Stabilize quote-style's
preservemode (#9922)CLI
- Allow arbitrary configuration options to be overridden via the CLI (#9599)
Bug fixes
- Make
show-settingsfilters directory-agnostic (#9866)- Respect duplicates when rewriting type aliases (#9905)
- Respect tuple assignments in typing analyzer (#9969)
- Use atomic write when persisting cache (#9981)
- Use non-parenthesized range for
DebugText(#9953)- [
flake8-simplify] Avoid false positive withasyncfor loops (SIM113) (#9996)- [
flake8-trio] Respectasync withintimeout-without-await(#9859)- [
perflint] Catch a wider range of mutations inPERF101(#9955)- [
pycodestyle] FixE30Xpanics on blank lines with trailing white spaces (#9907)- [
pydocstyle] Allow usingparametersas a subsection header (D405) (#9894)- [
pydocstyle] Fix blank-line docstring rules for module-level docstrings (#9878)- [
pylint] Accept 0.0 and 1.0 as common magic values (PLR2004) (#9964)- [
pylint] Avoid suggesting set rewrites for non-hashable types (#9956)- [
ruff] Avoid false negatives with string literals inside of method calls (RUF027) (#9865)- [
ruff] Fix panic on with f-string detection (RUF027) (#9990)
... (truncated)
Commits
235cfb7Bump version to v0.2.2 (#10018)91ae81bMoveRUF001,RUF002to AST checker (#9993)d46c5d8docs: Formatter compatibility warning for D207 and D300 (#10007)20217e9Fix panic on RUF027 (#9990)72bf1c2Preview minimal f-string formatting (#9642)c47ff65chore(docs): update Discord invite to permalink (#10005)c3bba54Fix SIM113 false positive with async for loops (#9996)fe79798split string module (#9987)bb8d203Use atomic write when persisting cache (#9981)f40e012Use name directly in RUF006 (#9979)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: No coverage uploaded for pull request base (
main@a4a3a42). Click here to learn what that means.
Additional details and impacted files
@@ Coverage Diff @@
## main #1857 +/- ##
=======================================
Coverage ? 98.98%
=======================================
Files ? 37
Lines ? 4157
Branches ? 968
=======================================
Hits ? 4115
Misses ? 26
Partials ? 16
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 98.65% <ø> (?) |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
CodSpeed Performance Report
Merging #1857 will not alter performance
Comparing dependabot/pip/ruff-0.2.2 (0cb5940) with main (a4a3a42)
Summary
✅ 29 untouched benchmarks
Superseded by #1871.