Skip to content

Avoid S108 if path is inside tempfile.* call#6416

Merged
dhruvmanila merged 3 commits intomainfrom
dhruv/s108-tempfile
Aug 9, 2023
Merged

Avoid S108 if path is inside tempfile.* call#6416
dhruvmanila merged 3 commits intomainfrom
dhruv/s108-tempfile

Conversation

@dhruvmanila
Copy link
Member

Summary

Avoid S108 if path is inside tempfile.* call

Test Plan

Add test cases with tempfile calls.

fixes: #6355

@dhruvmanila
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

PR Check Results

Ecosystem

ℹ️ ecosystem check detected changes. (+0, -2, 0 error(s))

airflow (+0, -2)

- tests/providers/amazon/aws/hooks/test_s3.py:1046:46: S108 Probable insecure usage of temporary file or directory: "/tmp"
- tests/providers/amazon/aws/hooks/test_s3.py:978:46: S108 Probable insecure usage of temporary file or directory: "/tmp"

Rules changed: 1
Rule Changes Additions Removals
S108 2 0 2

Benchmark

Linux

group                                      main                                   pr
-----                                      ----                                   --
formatter/large/dataset.py                 1.00      8.2±0.09ms     5.0 MB/sec    1.00      8.2±0.12ms     5.0 MB/sec
formatter/numpy/ctypeslib.py               1.00  1585.5±14.30µs    10.5 MB/sec    1.02  1623.2±33.09µs    10.3 MB/sec
formatter/numpy/globals.py                 1.00    181.4±6.88µs    16.3 MB/sec    1.00    181.9±3.69µs    16.2 MB/sec
formatter/pydantic/types.py                1.01      3.5±0.11ms     7.3 MB/sec    1.00      3.4±0.05ms     7.4 MB/sec
linter/all-rules/large/dataset.py          1.00     10.1±0.03ms     4.0 MB/sec    1.01     10.1±0.06ms     4.0 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      2.7±0.01ms     6.2 MB/sec    1.02      2.7±0.01ms     6.1 MB/sec
linter/all-rules/numpy/globals.py          1.00    375.4±0.41µs     7.9 MB/sec    1.01    379.9±1.18µs     7.8 MB/sec
linter/all-rules/pydantic/types.py         1.00      4.6±0.01ms     5.5 MB/sec    1.02      4.7±0.06ms     5.4 MB/sec
linter/default-rules/large/dataset.py      1.00      5.2±0.02ms     7.8 MB/sec    1.01      5.2±0.01ms     7.8 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.00   1117.8±4.05µs    14.9 MB/sec    1.01   1124.3±5.14µs    14.8 MB/sec
linter/default-rules/numpy/globals.py      1.00    127.1±3.04µs    23.2 MB/sec    1.01    128.5±0.26µs    23.0 MB/sec
linter/default-rules/pydantic/types.py     1.00      2.3±0.01ms    11.0 MB/sec    1.01      2.3±0.02ms    10.9 MB/sec

Windows

group                                      main                                    pr
-----                                      ----                                    --
formatter/large/dataset.py                 1.00      9.8±0.02ms     4.2 MB/sec     1.01      9.9±0.20ms     4.1 MB/sec
formatter/numpy/ctypeslib.py               1.00  1871.8±10.28µs     8.9 MB/sec     1.04  1943.7±102.78µs     8.6 MB/sec
formatter/numpy/globals.py                 1.00    194.3±1.45µs    15.2 MB/sec     1.02   197.5±13.60µs    14.9 MB/sec
formatter/pydantic/types.py                1.00      4.2±0.03ms     6.1 MB/sec     1.06      4.4±0.79ms     5.8 MB/sec
linter/all-rules/large/dataset.py          1.00     12.3±0.06ms     3.3 MB/sec     1.04     12.7±0.19ms     3.2 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      3.5±0.03ms     4.8 MB/sec     1.01      3.5±0.03ms     4.7 MB/sec
linter/all-rules/numpy/globals.py          1.00    355.8±5.33µs     8.3 MB/sec     1.02    363.9±7.65µs     8.1 MB/sec
linter/all-rules/pydantic/types.py         1.00      5.8±0.02ms     4.4 MB/sec     1.02      5.9±0.06ms     4.3 MB/sec
linter/default-rules/large/dataset.py      1.00      6.6±0.04ms     6.1 MB/sec     1.03      6.9±0.09ms     5.9 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.00  1384.3±153.26µs    12.0 MB/sec    1.02  1417.9±83.73µs    11.7 MB/sec
linter/default-rules/numpy/globals.py      1.00    139.8±0.85µs    21.1 MB/sec     1.01    141.4±1.43µs    20.9 MB/sec
linter/default-rules/pydantic/types.py     1.00      3.0±0.02ms     8.6 MB/sec     1.03      3.1±0.04ms     8.3 MB/sec

@dhruvmanila dhruvmanila merged commit 887a47c into main Aug 9, 2023
@dhruvmanila dhruvmanila deleted the dhruv/s108-tempfile branch August 9, 2023 04:52
@dhruvmanila dhruvmanila added the rule Implementing or modifying a lint rule label Aug 9, 2023
@zanieb zanieb mentioned this pull request Aug 9, 2023
zanieb added a commit that referenced this pull request Aug 9, 2023
## What's Changed

This release fixes a few bugs, notably the previous release announced a
breaking change where the default target
Python version changed from 3.10 to 3.8 but it was not applied. Thanks
to @rco-ableton for fixing this in
#6444

### Bug Fixes
* Do not trigger `S108` if path is inside `tempfile.*` call by
@dhruvmanila in #6416
* Do not allow on zero tab width by @tjkuson in
#6429
* Fix false-positive in submodule resolution by @charliermarsh in
#6435

## New Contributors
* @rco-ableton made their first contribution in
#6444

**Full Changelog**:
v0.0.283...v0.0.284
renovate bot referenced this pull request in ixm-one/pytest-cmake-presets Aug 10, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [ruff](https://beta.ruff.rs/docs)
([source](https://togithub.com/astral-sh/ruff),
[changelog](https://togithub.com/astral-sh/ruff/releases)) | `^0.0.281`
-> `^0.0.284` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.281/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.281/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>astral-sh/ruff (ruff)</summary>

###
[`v0.0.284`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.284)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.283...v0.0.284)

#### What's Changed

This release fixes a few bugs, notably the previous release announced a
breaking change where the default target
Python version changed from 3.10 to 3.8 but the change was not applied.
Thanks to [@&#8203;rco-ableton](https://togithub.com/rco-ableton) for
fixing this in

[https://github.com/astral-sh/ruff/pull/6444](https://togithub.com/astral-sh/ruff/pull/6444)

##### Bug Fixes

- Do not trigger `S108` if path is inside `tempfile.*` call by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/6416](https://togithub.com/astral-sh/ruff/pull/6416)
- Do not allow on zero tab width by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/6429](https://togithub.com/astral-sh/ruff/pull/6429)
- Fix false-positive in submodule resolution by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6435](https://togithub.com/astral-sh/ruff/pull/6435)

#### New Contributors

- [@&#8203;rco-ableton](https://togithub.com/rco-ableton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6444](https://togithub.com/astral-sh/ruff/pull/6444)

**Full Changelog**:
astral-sh/ruff@v0.0.283...v0.0.284

###
[`v0.0.283`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.283)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.282...v0.0.283)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Breaking Changes

- Assume Python 3.8 instead of 3.10 for target version by
[@&#8203;zanieb](https://togithub.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6397](https://togithub.com/astral-sh/ruff/pull/6397)

##### Rules

- \[`flake8-pyi`] `PYI019`: Detects if a type variable is used instead
of `Self` in return annotations by
[@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/6204](https://togithub.com/astral-sh/ruff/pull/6204)
- \[`flake8-pyi`] `PYI051`: Detects unions of `Literal` types by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6215](https://togithub.com/astral-sh/ruff/pull/6215)
- \[`flake8-pyi`] `PYI055`: Detects unions of `type`s by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6316](https://togithub.com/astral-sh/ruff/pull/6316)
- \[`pylint`] `E1300`: Detects invalid string format characters by
[@&#8203;silvanocerza](https://togithub.com/silvanocerza) in
[https://github.com/astral-sh/ruff/pull/6171](https://togithub.com/astral-sh/ruff/pull/6171)
- \[`pyupgrade`] `UP040`: Upgrades type alias annotations to use PEP-695
syntax by [@&#8203;zanieb](https://togithub.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6289](https://togithub.com/astral-sh/ruff/pull/6289)

##### Rule Changes

- \[`flake8-boolean-trap`] `FBT003`: Add `is_` and `is_not` to excluded
functions by [@&#8203;zanieb](https://togithub.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6307](https://togithub.com/astral-sh/ruff/pull/6307)
- \[`flake8-logging-format`] Allow capitalized names for logger
candidate heuristic match by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6356](https://togithub.com/astral-sh/ruff/pull/6356)
- \[`flake8-pyi`] Applicable rules are now checked non-stub code by
[@&#8203;andersk](https://togithub.com/andersk) in
[https://github.com/astral-sh/ruff/pull/6297](https://togithub.com/astral-sh/ruff/pull/6297)
- `PYI013`:
[`ellipsis-in-non-empty-class-body`](https://beta.ruff.rs/docs/rules/ellipsis-in-non-empty-class-body)
- `PYI016`:
[`duplicate-union-member`](https://beta.ruff.rs/docs/rules/duplicate-union-member)
- `PYI018`:
[`unused-private-type-var`](https://beta.ruff.rs/docs/rules/unused-private-type-var)
- `PYI019`:
[`custom-type-var-return-type`](https://beta.ruff.rs/docs/rules/custom-type-var-return-type)
- `PYI024`:
[`collections-named-tuple`](https://beta.ruff.rs/docs/rules/collections-named-tuple)
- `PYI025`:
[`unaliased-collections-abc-set-import`](https://beta.ruff.rs/docs/rules/unaliased-collections-abc-set-import)
- `PYI030`:
[`unnecessary-literal-union`](https://beta.ruff.rs/docs/rules/unnecessary-literal-union)
- `PYI032`:
[`any-eq-ne-annotation`](https://beta.ruff.rs/docs/rules/any-eq-ne-annotation)
- `PYI034`:
[`non-self-return-type`](https://beta.ruff.rs/docs/rules/non-self-return-type)
- `PYI036`:
[`bad-exit-annotation`](https://beta.ruff.rs/docs/rules/bad-exit-annotation)
- `PYI041`:
[`redundant-numeric-union`](https://beta.ruff.rs/docs/rules/redundant-numeric-union)
- `PYI042`:
[`snake-case-type-alias`](https://beta.ruff.rs/docs/rules/snake-case-type-alias)
- `PYI043`:
[`t-suffixed-type-alias`](https://beta.ruff.rs/docs/rules/t-suffixed-type-alias)
- `PYI045`:
[`iter-method-return-iterable`](https://beta.ruff.rs/docs/rules/iter-method-return-iterable)
- `PYI046`:
[`unused-private-protocol`](https://beta.ruff.rs/docs/rules/unused-private-protocol)
- `PYI047`:
[`unused-private-type-alias`](https://beta.ruff.rs/docs/rules/unused-private-type-alias)
- `PYI049`:
[`unused-private-typed-dict`](https://beta.ruff.rs/docs/rules/unused-private-typed-dict)
- `PYI050`:
[`no-return-argument-annotation-in-stub`](https://beta.ruff.rs/docs/rules/no-return-argument-annotation-in-stub)
(Python ≥ 3.11)
- `PYI051`:
[`redundant-literal-union`](https://beta.ruff.rs/docs/rules/redundant-literal-union)
- `PYI056`:
[`unsupported-method-call-on-all`](https://beta.ruff.rs/docs/rules/unsupported-method-call-on-all)
- \[`flake8-pyi`] `PYI027` is being replaced by `PYI022` / `UP035` by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6354](https://togithub.com/astral-sh/ruff/pull/6354)
- \[`pydocstyle`] `D103`: Don't require docstrings in `.pyi` files by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6239](https://togithub.com/astral-sh/ruff/pull/6239)
- \[`pydocstyle`] `D203`: Ignore same-line docstrings for lines-before
and lines-after rules by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6344](https://togithub.com/astral-sh/ruff/pull/6344)
- \[`pylint`] `PLE0605`: Allow generic tuple and list calls in `__all__`
by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6247](https://togithub.com/astral-sh/ruff/pull/6247)
- \[`pylint`] `PLR0124`: Add detection of comparisons with built-in
calls by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6324](https://togithub.com/astral-sh/ruff/pull/6324)
- \[`pyupgrade`] `UP032`: Add support for `await` expressions in
f-strings by [@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6304](https://togithub.com/astral-sh/ruff/pull/6304)
- \[`pyupgrade`] `UP032`: Add support for implicitly concatenated
strings by [@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6263](https://togithub.com/astral-sh/ruff/pull/6263)
- \[`pyupgrade`] `UP032`: Add support for repeated format fields by
[@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6266](https://togithub.com/astral-sh/ruff/pull/6266)
- \[`ruff`] `RUF012`: Permit `ClassVar` and `Final` without subscript by
[@&#8203;bluetech](https://togithub.com/bluetech) in
[https://github.com/astral-sh/ruff/pull/6273](https://togithub.com/astral-sh/ruff/pull/6273)

##### Bug Fixes

- \[`flake8-bugbear`] `B006`: Respect `typing_extensions` imports of
`Annotated` by [@&#8203;PIG208](https://togithub.com/PIG208) in
[https://github.com/astral-sh/ruff/pull/6361](https://togithub.com/astral-sh/ruff/pull/6361)
- \[`flake8-pyi`] `PYI019`: Fix panic with positional-only arguments by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6350](https://togithub.com/astral-sh/ruff/pull/6350)
- \[`flake8-use-pathlib`] Avoid raising `PTH206` with `maxsplit` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6283](https://togithub.com/astral-sh/ruff/pull/6283)
- \[`flake8`] `F841`: Update autofix to not remove Jupyer magic
expressions by [@&#8203;dhruvmanila](https://togithub.com/dhruvmanila)
in
[https://github.com/astral-sh/ruff/pull/6141](https://togithub.com/astral-sh/ruff/pull/6141)
- \[`pycodestyle`] `E721`: Include comparisons to builtin types by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6325](https://togithub.com/astral-sh/ruff/pull/6325)
- \[`pycodestyle`] `E721`: Match left-hand side `types()` call in
`types-comparison` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6326](https://togithub.com/astral-sh/ruff/pull/6326)
- \[`pyupgrade`] `UP031`: Avoid auto-fixing if there are comments within
the right-hand side by [@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6364](https://togithub.com/astral-sh/ruff/pull/6364)
- \[`pyupgrade`] `UP032`: Avoid auto-fixing if comments are present
around format call arguments by
[@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6342](https://togithub.com/astral-sh/ruff/pull/6342)
- \[`pyupgrade`] `UP032`: Improve invalid expression check by
[@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6308](https://togithub.com/astral-sh/ruff/pull/6308)
- Avoid attempting to fix `.format(...)` calls with too-few-arguments by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6401](https://togithub.com/astral-sh/ruff/pull/6401)
- Fix bug where `.gitignore` files in parent directories were
incorrectly used by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6368](https://togithub.com/astral-sh/ruff/pull/6368)
- Fix duplicate violations raised on nested bitwise or `Union`
expressions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6399](https://togithub.com/astral-sh/ruff/pull/6399)

##### Playground

- Add a simple tooltip to the sidebar by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6295](https://togithub.com/astral-sh/ruff/pull/6295)
- Add an icon for FIR by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6292](https://togithub.com/astral-sh/ruff/pull/6292)
- Increase icon opacity on-hover by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6291](https://togithub.com/astral-sh/ruff/pull/6291)
- Tweak background on theme button by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6290](https://togithub.com/astral-sh/ruff/pull/6290)

##### Other Changes

- Improve handling of violations around Jupyter magic expressions by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5552](https://togithub.com/astral-sh/ruff/pull/5552)
- Reduce memory usage by boxing type params and arguments fields on the
class definition node by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6275](https://togithub.com/astral-sh/ruff/pull/6275)
- Upgrade Rust to 1.71 by [@&#8203;zanieb](https://togithub.com/zanieb)
in
[https://github.com/astral-sh/ruff/pull/6323](https://togithub.com/astral-sh/ruff/pull/6323)

#### New Contributors

- [@&#8203;silvanocerza](https://togithub.com/silvanocerza) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6171](https://togithub.com/astral-sh/ruff/pull/6171)
- [@&#8203;PIG208](https://togithub.com/PIG208) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6361](https://togithub.com/astral-sh/ruff/pull/6361)

**Full Changelog**:
astral-sh/ruff@v0.0.282...v0.0.283

###
[`v0.0.282`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.282)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.281...v0.0.282)

<!-- Release notes generated using configuration in .github/release.yml
at v0.0.282 -->

#### What's Changed

##### Bug Fixes

- Reset model state when exiting deferred visitors by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6208](https://togithub.com/astral-sh/ruff/pull/6208)
- Skip trivia when searching for named exception by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6218](https://togithub.com/astral-sh/ruff/pull/6218)
- Avoid PERF401 false positive on list access in loop by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6220](https://togithub.com/astral-sh/ruff/pull/6220)
- Avoid detecting continuations at non-start-of-line by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6219](https://togithub.com/astral-sh/ruff/pull/6219)
- Revert "Expand scope of `quoted-annotation` rule
([#&#8203;5766](https://togithub.com/astral-sh/ruff/issues/5766))" by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6237](https://togithub.com/astral-sh/ruff/pull/6237)

#### New Contributors

- [@&#8203;klistwan](https://togithub.com/klistwan) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6146](https://togithub.com/astral-sh/ruff/pull/6146)

**Full Changelog**:
astral-sh/ruff@v0.0.281...v0.0.282

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, 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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ixm-one/pytest-cmake-presets).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4yNy4xIiwidXBkYXRlZEluVmVyIjoiMzYuNDAuMyIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in allenporter/pyrainbird Aug 11, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [ruff](https://beta.ruff.rs/docs)
([source](https://togithub.com/astral-sh/ruff),
[changelog](https://togithub.com/astral-sh/ruff/releases)) | `==0.0.282`
-> `==0.0.284` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.282/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.282/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>astral-sh/ruff (ruff)</summary>

###
[`v0.0.284`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.284)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.283...v0.0.284)

#### What's Changed

This release fixes a few bugs, notably the previous release announced a
breaking change where the default target
Python version changed from 3.10 to 3.8 but the change was not applied.
Thanks to [@&#8203;rco-ableton](https://togithub.com/rco-ableton) for
fixing this in

[https://github.com/astral-sh/ruff/pull/6444](https://togithub.com/astral-sh/ruff/pull/6444)

##### Bug Fixes

- Do not trigger `S108` if path is inside `tempfile.*` call by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/6416](https://togithub.com/astral-sh/ruff/pull/6416)
- Do not allow on zero tab width by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/6429](https://togithub.com/astral-sh/ruff/pull/6429)
- Fix false-positive in submodule resolution by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6435](https://togithub.com/astral-sh/ruff/pull/6435)

#### New Contributors

- [@&#8203;rco-ableton](https://togithub.com/rco-ableton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6444](https://togithub.com/astral-sh/ruff/pull/6444)

**Full Changelog**:
astral-sh/ruff@v0.0.283...v0.0.284

###
[`v0.0.283`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.283)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.282...v0.0.283)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Breaking Changes

- Assume Python 3.8 instead of 3.10 for target version by
[@&#8203;zanieb](https://togithub.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6397](https://togithub.com/astral-sh/ruff/pull/6397)

##### Rules

- \[`flake8-pyi`] `PYI019`: Detects if a type variable is used instead
of `Self` in return annotations by
[@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/6204](https://togithub.com/astral-sh/ruff/pull/6204)
- \[`flake8-pyi`] `PYI051`: Detects unions of `Literal` types by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6215](https://togithub.com/astral-sh/ruff/pull/6215)
- \[`flake8-pyi`] `PYI055`: Detects unions of `type`s by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6316](https://togithub.com/astral-sh/ruff/pull/6316)
- \[`pylint`] `E1300`: Detects invalid string format characters by
[@&#8203;silvanocerza](https://togithub.com/silvanocerza) in
[https://github.com/astral-sh/ruff/pull/6171](https://togithub.com/astral-sh/ruff/pull/6171)
- \[`pyupgrade`] `UP040`: Upgrades type alias annotations to use PEP-695
syntax by [@&#8203;zanieb](https://togithub.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6289](https://togithub.com/astral-sh/ruff/pull/6289)

##### Rule Changes

- \[`flake8-boolean-trap`] `FBT003`: Add `is_` and `is_not` to excluded
functions by [@&#8203;zanieb](https://togithub.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6307](https://togithub.com/astral-sh/ruff/pull/6307)
- \[`flake8-logging-format`] Allow capitalized names for logger
candidate heuristic match by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6356](https://togithub.com/astral-sh/ruff/pull/6356)
- \[`flake8-pyi`] Applicable rules are now checked non-stub code by
[@&#8203;andersk](https://togithub.com/andersk) in
[https://github.com/astral-sh/ruff/pull/6297](https://togithub.com/astral-sh/ruff/pull/6297)
- `PYI013`:
[`ellipsis-in-non-empty-class-body`](https://beta.ruff.rs/docs/rules/ellipsis-in-non-empty-class-body)
- `PYI016`:
[`duplicate-union-member`](https://beta.ruff.rs/docs/rules/duplicate-union-member)
- `PYI018`:
[`unused-private-type-var`](https://beta.ruff.rs/docs/rules/unused-private-type-var)
- `PYI019`:
[`custom-type-var-return-type`](https://beta.ruff.rs/docs/rules/custom-type-var-return-type)
- `PYI024`:
[`collections-named-tuple`](https://beta.ruff.rs/docs/rules/collections-named-tuple)
- `PYI025`:
[`unaliased-collections-abc-set-import`](https://beta.ruff.rs/docs/rules/unaliased-collections-abc-set-import)
- `PYI030`:
[`unnecessary-literal-union`](https://beta.ruff.rs/docs/rules/unnecessary-literal-union)
- `PYI032`:
[`any-eq-ne-annotation`](https://beta.ruff.rs/docs/rules/any-eq-ne-annotation)
- `PYI034`:
[`non-self-return-type`](https://beta.ruff.rs/docs/rules/non-self-return-type)
- `PYI036`:
[`bad-exit-annotation`](https://beta.ruff.rs/docs/rules/bad-exit-annotation)
- `PYI041`:
[`redundant-numeric-union`](https://beta.ruff.rs/docs/rules/redundant-numeric-union)
- `PYI042`:
[`snake-case-type-alias`](https://beta.ruff.rs/docs/rules/snake-case-type-alias)
- `PYI043`:
[`t-suffixed-type-alias`](https://beta.ruff.rs/docs/rules/t-suffixed-type-alias)
- `PYI045`:
[`iter-method-return-iterable`](https://beta.ruff.rs/docs/rules/iter-method-return-iterable)
- `PYI046`:
[`unused-private-protocol`](https://beta.ruff.rs/docs/rules/unused-private-protocol)
- `PYI047`:
[`unused-private-type-alias`](https://beta.ruff.rs/docs/rules/unused-private-type-alias)
- `PYI049`:
[`unused-private-typed-dict`](https://beta.ruff.rs/docs/rules/unused-private-typed-dict)
- `PYI050`:
[`no-return-argument-annotation-in-stub`](https://beta.ruff.rs/docs/rules/no-return-argument-annotation-in-stub)
(Python ≥ 3.11)
- `PYI051`:
[`redundant-literal-union`](https://beta.ruff.rs/docs/rules/redundant-literal-union)
- `PYI056`:
[`unsupported-method-call-on-all`](https://beta.ruff.rs/docs/rules/unsupported-method-call-on-all)
- \[`flake8-pyi`] `PYI027` is being replaced by `PYI022` / `UP035` by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6354](https://togithub.com/astral-sh/ruff/pull/6354)
- \[`pydocstyle`] `D103`: Don't require docstrings in `.pyi` files by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6239](https://togithub.com/astral-sh/ruff/pull/6239)
- \[`pydocstyle`] `D203`: Ignore same-line docstrings for lines-before
and lines-after rules by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6344](https://togithub.com/astral-sh/ruff/pull/6344)
- \[`pylint`] `PLE0605`: Allow generic tuple and list calls in `__all__`
by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6247](https://togithub.com/astral-sh/ruff/pull/6247)
- \[`pylint`] `PLR0124`: Add detection of comparisons with built-in
calls by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6324](https://togithub.com/astral-sh/ruff/pull/6324)
- \[`pyupgrade`] `UP032`: Add support for `await` expressions in
f-strings by [@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6304](https://togithub.com/astral-sh/ruff/pull/6304)
- \[`pyupgrade`] `UP032`: Add support for implicitly concatenated
strings by [@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6263](https://togithub.com/astral-sh/ruff/pull/6263)
- \[`pyupgrade`] `UP032`: Add support for repeated format fields by
[@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6266](https://togithub.com/astral-sh/ruff/pull/6266)
- \[`ruff`] `RUF012`: Permit `ClassVar` and `Final` without subscript by
[@&#8203;bluetech](https://togithub.com/bluetech) in
[https://github.com/astral-sh/ruff/pull/6273](https://togithub.com/astral-sh/ruff/pull/6273)

##### Bug Fixes

- \[`flake8-bugbear`] `B006`: Respect `typing_extensions` imports of
`Annotated` by [@&#8203;PIG208](https://togithub.com/PIG208) in
[https://github.com/astral-sh/ruff/pull/6361](https://togithub.com/astral-sh/ruff/pull/6361)
- \[`flake8-pyi`] `PYI019`: Fix panic with positional-only arguments by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6350](https://togithub.com/astral-sh/ruff/pull/6350)
- \[`flake8-use-pathlib`] Avoid raising `PTH206` with `maxsplit` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6283](https://togithub.com/astral-sh/ruff/pull/6283)
- \[`flake8`] `F841`: Update autofix to not remove Jupyer magic
expressions by [@&#8203;dhruvmanila](https://togithub.com/dhruvmanila)
in
[https://github.com/astral-sh/ruff/pull/6141](https://togithub.com/astral-sh/ruff/pull/6141)
- \[`pycodestyle`] `E721`: Include comparisons to builtin types by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6325](https://togithub.com/astral-sh/ruff/pull/6325)
- \[`pycodestyle`] `E721`: Match left-hand side `types()` call in
`types-comparison` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6326](https://togithub.com/astral-sh/ruff/pull/6326)
- \[`pyupgrade`] `UP031`: Avoid auto-fixing if there are comments within
the right-hand side by [@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6364](https://togithub.com/astral-sh/ruff/pull/6364)
- \[`pyupgrade`] `UP032`: Avoid auto-fixing if comments are present
around format call arguments by
[@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6342](https://togithub.com/astral-sh/ruff/pull/6342)
- \[`pyupgrade`] `UP032`: Improve invalid expression check by
[@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6308](https://togithub.com/astral-sh/ruff/pull/6308)
- Avoid attempting to fix `.format(...)` calls with too-few-arguments by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6401](https://togithub.com/astral-sh/ruff/pull/6401)
- Fix bug where `.gitignore` files in parent directories were
incorrectly used by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6368](https://togithub.com/astral-sh/ruff/pull/6368)
- Fix duplicate violations raised on nested bitwise or `Union`
expressions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6399](https://togithub.com/astral-sh/ruff/pull/6399)

##### Playground

- Add a simple tooltip to the sidebar by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6295](https://togithub.com/astral-sh/ruff/pull/6295)
- Add an icon for FIR by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6292](https://togithub.com/astral-sh/ruff/pull/6292)
- Increase icon opacity on-hover by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6291](https://togithub.com/astral-sh/ruff/pull/6291)
- Tweak background on theme button by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6290](https://togithub.com/astral-sh/ruff/pull/6290)

##### Other Changes

- Improve handling of violations around Jupyter magic expressions by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5552](https://togithub.com/astral-sh/ruff/pull/5552)
- Reduce memory usage by boxing type params and arguments fields on the
class definition node by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6275](https://togithub.com/astral-sh/ruff/pull/6275)
- Upgrade Rust to 1.71 by [@&#8203;zanieb](https://togithub.com/zanieb)
in
[https://github.com/astral-sh/ruff/pull/6323](https://togithub.com/astral-sh/ruff/pull/6323)

#### New Contributors

- [@&#8203;silvanocerza](https://togithub.com/silvanocerza) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6171](https://togithub.com/astral-sh/ruff/pull/6171)
- [@&#8203;PIG208](https://togithub.com/PIG208) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6361](https://togithub.com/astral-sh/ruff/pull/6361)

**Full Changelog**:
astral-sh/ruff@v0.0.282...v0.0.283

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/allenporter/pyrainbird).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40MC4zIiwidXBkYXRlZEluVmVyIjoiMzYuNDAuMyIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in allenporter/flux-local Aug 11, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [ruff](https://beta.ruff.rs/docs)
([source](https://togithub.com/astral-sh/ruff),
[changelog](https://togithub.com/astral-sh/ruff/releases)) | `==0.0.282`
-> `==0.0.284` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.282/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.282/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>astral-sh/ruff (ruff)</summary>

###
[`v0.0.284`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.284)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.283...v0.0.284)

#### What's Changed

This release fixes a few bugs, notably the previous release announced a
breaking change where the default target
Python version changed from 3.10 to 3.8 but the change was not applied.
Thanks to [@&#8203;rco-ableton](https://togithub.com/rco-ableton) for
fixing this in

[https://github.com/astral-sh/ruff/pull/6444](https://togithub.com/astral-sh/ruff/pull/6444)

##### Bug Fixes

- Do not trigger `S108` if path is inside `tempfile.*` call by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/6416](https://togithub.com/astral-sh/ruff/pull/6416)
- Do not allow on zero tab width by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/6429](https://togithub.com/astral-sh/ruff/pull/6429)
- Fix false-positive in submodule resolution by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6435](https://togithub.com/astral-sh/ruff/pull/6435)

#### New Contributors

- [@&#8203;rco-ableton](https://togithub.com/rco-ableton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6444](https://togithub.com/astral-sh/ruff/pull/6444)

**Full Changelog**:
astral-sh/ruff@v0.0.283...v0.0.284

###
[`v0.0.283`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.283)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.282...v0.0.283)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Breaking Changes

- Assume Python 3.8 instead of 3.10 for target version by
[@&#8203;zanieb](https://togithub.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6397](https://togithub.com/astral-sh/ruff/pull/6397)

##### Rules

- \[`flake8-pyi`] `PYI019`: Detects if a type variable is used instead
of `Self` in return annotations by
[@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/6204](https://togithub.com/astral-sh/ruff/pull/6204)
- \[`flake8-pyi`] `PYI051`: Detects unions of `Literal` types by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6215](https://togithub.com/astral-sh/ruff/pull/6215)
- \[`flake8-pyi`] `PYI055`: Detects unions of `type`s by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6316](https://togithub.com/astral-sh/ruff/pull/6316)
- \[`pylint`] `E1300`: Detects invalid string format characters by
[@&#8203;silvanocerza](https://togithub.com/silvanocerza) in
[https://github.com/astral-sh/ruff/pull/6171](https://togithub.com/astral-sh/ruff/pull/6171)
- \[`pyupgrade`] `UP040`: Upgrades type alias annotations to use PEP-695
syntax by [@&#8203;zanieb](https://togithub.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6289](https://togithub.com/astral-sh/ruff/pull/6289)

##### Rule Changes

- \[`flake8-boolean-trap`] `FBT003`: Add `is_` and `is_not` to excluded
functions by [@&#8203;zanieb](https://togithub.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6307](https://togithub.com/astral-sh/ruff/pull/6307)
- \[`flake8-logging-format`] Allow capitalized names for logger
candidate heuristic match by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6356](https://togithub.com/astral-sh/ruff/pull/6356)
- \[`flake8-pyi`] Applicable rules are now checked non-stub code by
[@&#8203;andersk](https://togithub.com/andersk) in
[https://github.com/astral-sh/ruff/pull/6297](https://togithub.com/astral-sh/ruff/pull/6297)
- `PYI013`:
[`ellipsis-in-non-empty-class-body`](https://beta.ruff.rs/docs/rules/ellipsis-in-non-empty-class-body)
- `PYI016`:
[`duplicate-union-member`](https://beta.ruff.rs/docs/rules/duplicate-union-member)
- `PYI018`:
[`unused-private-type-var`](https://beta.ruff.rs/docs/rules/unused-private-type-var)
- `PYI019`:
[`custom-type-var-return-type`](https://beta.ruff.rs/docs/rules/custom-type-var-return-type)
- `PYI024`:
[`collections-named-tuple`](https://beta.ruff.rs/docs/rules/collections-named-tuple)
- `PYI025`:
[`unaliased-collections-abc-set-import`](https://beta.ruff.rs/docs/rules/unaliased-collections-abc-set-import)
- `PYI030`:
[`unnecessary-literal-union`](https://beta.ruff.rs/docs/rules/unnecessary-literal-union)
- `PYI032`:
[`any-eq-ne-annotation`](https://beta.ruff.rs/docs/rules/any-eq-ne-annotation)
- `PYI034`:
[`non-self-return-type`](https://beta.ruff.rs/docs/rules/non-self-return-type)
- `PYI036`:
[`bad-exit-annotation`](https://beta.ruff.rs/docs/rules/bad-exit-annotation)
- `PYI041`:
[`redundant-numeric-union`](https://beta.ruff.rs/docs/rules/redundant-numeric-union)
- `PYI042`:
[`snake-case-type-alias`](https://beta.ruff.rs/docs/rules/snake-case-type-alias)
- `PYI043`:
[`t-suffixed-type-alias`](https://beta.ruff.rs/docs/rules/t-suffixed-type-alias)
- `PYI045`:
[`iter-method-return-iterable`](https://beta.ruff.rs/docs/rules/iter-method-return-iterable)
- `PYI046`:
[`unused-private-protocol`](https://beta.ruff.rs/docs/rules/unused-private-protocol)
- `PYI047`:
[`unused-private-type-alias`](https://beta.ruff.rs/docs/rules/unused-private-type-alias)
- `PYI049`:
[`unused-private-typed-dict`](https://beta.ruff.rs/docs/rules/unused-private-typed-dict)
- `PYI050`:
[`no-return-argument-annotation-in-stub`](https://beta.ruff.rs/docs/rules/no-return-argument-annotation-in-stub)
(Python ≥ 3.11)
- `PYI051`:
[`redundant-literal-union`](https://beta.ruff.rs/docs/rules/redundant-literal-union)
- `PYI056`:
[`unsupported-method-call-on-all`](https://beta.ruff.rs/docs/rules/unsupported-method-call-on-all)
- \[`flake8-pyi`] `PYI027` is being replaced by `PYI022` / `UP035` by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6354](https://togithub.com/astral-sh/ruff/pull/6354)
- \[`pydocstyle`] `D103`: Don't require docstrings in `.pyi` files by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6239](https://togithub.com/astral-sh/ruff/pull/6239)
- \[`pydocstyle`] `D203`: Ignore same-line docstrings for lines-before
and lines-after rules by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6344](https://togithub.com/astral-sh/ruff/pull/6344)
- \[`pylint`] `PLE0605`: Allow generic tuple and list calls in `__all__`
by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6247](https://togithub.com/astral-sh/ruff/pull/6247)
- \[`pylint`] `PLR0124`: Add detection of comparisons with built-in
calls by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6324](https://togithub.com/astral-sh/ruff/pull/6324)
- \[`pyupgrade`] `UP032`: Add support for `await` expressions in
f-strings by [@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6304](https://togithub.com/astral-sh/ruff/pull/6304)
- \[`pyupgrade`] `UP032`: Add support for implicitly concatenated
strings by [@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6263](https://togithub.com/astral-sh/ruff/pull/6263)
- \[`pyupgrade`] `UP032`: Add support for repeated format fields by
[@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6266](https://togithub.com/astral-sh/ruff/pull/6266)
- \[`ruff`] `RUF012`: Permit `ClassVar` and `Final` without subscript by
[@&#8203;bluetech](https://togithub.com/bluetech) in
[https://github.com/astral-sh/ruff/pull/6273](https://togithub.com/astral-sh/ruff/pull/6273)

##### Bug Fixes

- \[`flake8-bugbear`] `B006`: Respect `typing_extensions` imports of
`Annotated` by [@&#8203;PIG208](https://togithub.com/PIG208) in
[https://github.com/astral-sh/ruff/pull/6361](https://togithub.com/astral-sh/ruff/pull/6361)
- \[`flake8-pyi`] `PYI019`: Fix panic with positional-only arguments by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6350](https://togithub.com/astral-sh/ruff/pull/6350)
- \[`flake8-use-pathlib`] Avoid raising `PTH206` with `maxsplit` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6283](https://togithub.com/astral-sh/ruff/pull/6283)
- \[`flake8`] `F841`: Update autofix to not remove Jupyer magic
expressions by [@&#8203;dhruvmanila](https://togithub.com/dhruvmanila)
in
[https://github.com/astral-sh/ruff/pull/6141](https://togithub.com/astral-sh/ruff/pull/6141)
- \[`pycodestyle`] `E721`: Include comparisons to builtin types by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6325](https://togithub.com/astral-sh/ruff/pull/6325)
- \[`pycodestyle`] `E721`: Match left-hand side `types()` call in
`types-comparison` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6326](https://togithub.com/astral-sh/ruff/pull/6326)
- \[`pyupgrade`] `UP031`: Avoid auto-fixing if there are comments within
the right-hand side by [@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6364](https://togithub.com/astral-sh/ruff/pull/6364)
- \[`pyupgrade`] `UP032`: Avoid auto-fixing if comments are present
around format call arguments by
[@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6342](https://togithub.com/astral-sh/ruff/pull/6342)
- \[`pyupgrade`] `UP032`: Improve invalid expression check by
[@&#8203;harupy](https://togithub.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6308](https://togithub.com/astral-sh/ruff/pull/6308)
- Avoid attempting to fix `.format(...)` calls with too-few-arguments by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6401](https://togithub.com/astral-sh/ruff/pull/6401)
- Fix bug where `.gitignore` files in parent directories were
incorrectly used by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6368](https://togithub.com/astral-sh/ruff/pull/6368)
- Fix duplicate violations raised on nested bitwise or `Union`
expressions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6399](https://togithub.com/astral-sh/ruff/pull/6399)

##### Playground

- Add a simple tooltip to the sidebar by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6295](https://togithub.com/astral-sh/ruff/pull/6295)
- Add an icon for FIR by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6292](https://togithub.com/astral-sh/ruff/pull/6292)
- Increase icon opacity on-hover by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6291](https://togithub.com/astral-sh/ruff/pull/6291)
- Tweak background on theme button by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6290](https://togithub.com/astral-sh/ruff/pull/6290)

##### Other Changes

- Improve handling of violations around Jupyter magic expressions by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5552](https://togithub.com/astral-sh/ruff/pull/5552)
- Reduce memory usage by boxing type params and arguments fields on the
class definition node by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6275](https://togithub.com/astral-sh/ruff/pull/6275)
- Upgrade Rust to 1.71 by [@&#8203;zanieb](https://togithub.com/zanieb)
in
[https://github.com/astral-sh/ruff/pull/6323](https://togithub.com/astral-sh/ruff/pull/6323)

#### New Contributors

- [@&#8203;silvanocerza](https://togithub.com/silvanocerza) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6171](https://togithub.com/astral-sh/ruff/pull/6171)
- [@&#8203;PIG208](https://togithub.com/PIG208) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6361](https://togithub.com/astral-sh/ruff/pull/6361)

**Full Changelog**:
astral-sh/ruff@v0.0.282...v0.0.283

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/allenporter/flux-local).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40MC4zIiwidXBkYXRlZEluVmVyIjoiMzYuNDAuMyIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
durumu pushed a commit to durumu/ruff that referenced this pull request Aug 12, 2023
durumu pushed a commit to durumu/ruff that referenced this pull request Aug 12, 2023
## What's Changed

This release fixes a few bugs, notably the previous release announced a
breaking change where the default target
Python version changed from 3.10 to 3.8 but it was not applied. Thanks
to @rco-ableton for fixing this in
astral-sh#6444

### Bug Fixes
* Do not trigger `S108` if path is inside `tempfile.*` call by
@dhruvmanila in astral-sh#6416
* Do not allow on zero tab width by @tjkuson in
astral-sh#6429
* Fix false-positive in submodule resolution by @charliermarsh in
astral-sh#6435

## New Contributors
* @rco-ableton made their first contribution in
astral-sh#6444

**Full Changelog**:
astral-sh/ruff@v0.0.283...v0.0.284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should S108 be detected in tempfile.TemporaryDirectory(dir="/dev/shm")?

3 participants