.ipynb_checkpoints, .pyenv, .pytest_cache, and .vscode are now excluded by default (#5513)
Ruff maintains a list of default exclusions, which now consists of the following patterns:
.bzr
.direnv
.eggs
.git
.git-rewrite
.hg
.ipynb_checkpoints
.mypy_cache
.nox
.pants.d
.pyenv
.pytest_cache
.pytype
.ruff_cache
.svn
.tox
.venv
.vscode
__pypackages__
_build
buck-out
build
dist
node_modules
venv
Previously, the .ipynb_checkpoints, .pyenv, .pytest_cache, and .vscode directories were not
excluded by default. This change brings Ruff's default exclusions in line with other tools like
Black.
0.0.276
The keep-runtime-typing setting has been reinstated (#5470)
The keep-runtime-typing setting has been reinstated with revised semantics. This setting was
removed in #4427, as it was equivalent to ignoring
the UP006 and UP007 rules via Ruff's standard ignore mechanism.
Taking UP006 (rewrite List[int] to list[int]) as an example, the setting now behaves as
follows:
On Python 3.7 and Python 3.8, setting keep-runtime-typing = true will cause Ruff to ignore
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on ruff to permit the latest version.
Release notes
Sourced from ruff's releases.
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
0ead9a1
Bump version to 0.0.278 (#5714)653429b
Handle right parens in join comma builder (#5711)f0aa6bd
Document ruff_dev and format_dev (#5648)5665968
Bump static Python versions in CI from 3.7 to 3.11 (#5700)33a9177
Use permalinks in ecosystem diff references (#5704)0666add
Add RUF016: Detection of invalid index types (#5602)7566ca8
Refactorrepeated_keys()
to useComparableExpr
(#5696)5dd9e56
Misc. tweaks to bandit documentation (#5701)f8173da
Add documentation to theS3XX
rules (#5592)511ec0d
Refactor shebang parsing to remove regex dependency (#5690)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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)