Bump annotate-snippets from 0.9.1 to 0.9.2 (#8646)

This commit is contained in:
dependabot[bot] 2023-11-13 14:55:15 +00:00 committed by GitHub
parent c4fc2b8584
commit 5ba852a878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 52 additions and 52 deletions

8
Cargo.lock generated
View File

@ -64,9 +64,9 @@ checksum = "c7021ce4924a3f25f802b2cccd1af585e39ea1a363a1aa2e72afe54b67a3a7a7"
[[package]]
name = "annotate-snippets"
version = "0.9.1"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3b9d411ecbaf79885c6df4d75fff75858d5995ff25385657a28af47e82f9c36"
checksum = "ccaf7e9dfbb6ab22c82e473cd1a8a7bd313c19a5b7e40970f3d89ef5a5c9e81e"
dependencies = [
"unicode-width",
"yansi-term",
@ -2064,7 +2064,7 @@ dependencies = [
name = "ruff_cli"
version = "0.1.5"
dependencies = [
"annotate-snippets 0.9.1",
"annotate-snippets 0.9.2",
"anyhow",
"argfile",
"assert_cmd",
@ -2201,7 +2201,7 @@ name = "ruff_linter"
version = "0.1.5"
dependencies = [
"aho-corasick",
"annotate-snippets 0.9.1",
"annotate-snippets 0.9.2",
"anyhow",
"bitflags 2.4.1",
"chrono",

View File

@ -28,7 +28,7 @@ ruff_python_trivia = { path = "../ruff_python_trivia" }
ruff_workspace = { path = "../ruff_workspace" }
ruff_text_size = { path = "../ruff_text_size" }
annotate-snippets = { version = "0.9.1", features = ["color"] }
annotate-snippets = { version = "0.9.2", features = ["color"] }
anyhow = { workspace = true }
argfile = { version = "0.1.6" }
bincode = { version = "1.3.3" }

View File

@ -30,7 +30,7 @@ ruff_source_file = { path = "../ruff_source_file", features = ["serde"] }
ruff_text_size = { path = "../ruff_text_size" }
aho-corasick = { version = "1.1.2" }
annotate-snippets = { version = "0.9.1", features = ["color"] }
annotate-snippets = { version = "0.9.2", features = ["color"] }
anyhow = { workspace = true }
bitflags = { workspace = true }
chrono = { workspace = true }

View File

@ -8,7 +8,7 @@ LOG002.py:11:11: LOG002 [*] Use `__name__` with `logging.getLogger()`
| ^^^^^^^^ LOG002
12 | logging.getLogger(name=__file__)
|
= help: Replace with `name`
= help: Replace with `__name__`
Unsafe fix
8 8 | logging.getLogger(name="custom")
@ -29,7 +29,7 @@ LOG002.py:12:24: LOG002 [*] Use `__name__` with `logging.getLogger()`
13 |
14 | logging.getLogger(__cached__)
|
= help: Replace with `name`
= help: Replace with `__name__`
Unsafe fix
9 9 |
@ -49,7 +49,7 @@ LOG002.py:14:19: LOG002 [*] Use `__name__` with `logging.getLogger()`
| ^^^^^^^^^^ LOG002
15 | getLogger(name=__cached__)
|
= help: Replace with `name`
= help: Replace with `__name__`
Unsafe fix
11 11 | getLogger(__file__)
@ -67,7 +67,7 @@ LOG002.py:15:16: LOG002 [*] Use `__name__` with `logging.getLogger()`
15 | getLogger(name=__cached__)
| ^^^^^^^^^^ LOG002
|
= help: Replace with `name`
= help: Replace with `__name__`
Unsafe fix
12 12 | logging.getLogger(name=__file__)

View File

@ -9,7 +9,7 @@ PYI029.pyi:10:9: PYI029 [*] Defining `__str__` in a stub is almost always redund
11 |
12 | class ShouldRemove:
|
= help: Remove definition of `str`
= help: Remove definition of `__str__`
Safe fix
7 7 | def __repr__(self, *, foo) -> str: ...
@ -28,7 +28,7 @@ PYI029.pyi:13:9: PYI029 [*] Defining `__repr__` in a stub is almost always redun
| ^^^^^^^^ PYI029
14 | def __str__(self) -> builtins.str: ... # Error: PYI029
|
= help: Remove definition of `repr`
= help: Remove definition of `__repr__`
Safe fix
10 10 | def __str__(self) -> builtins.str: ... # Error: PYI029
@ -48,7 +48,7 @@ PYI029.pyi:14:9: PYI029 [*] Defining `__str__` in a stub is almost always redund
15 |
16 | class NoReturnSpecified:
|
= help: Remove definition of `str`
= help: Remove definition of `__str__`
Safe fix
11 11 |

View File

@ -8,7 +8,7 @@ docstring.py:1:1: I002 [*] Missing required import: `from __future__ import anno
2 |
3 | x = 1
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
1 1 | """Hello, world!"""
@ -23,7 +23,7 @@ docstring.py:1:1: I002 [*] Missing required import: `from __future__ import gene
2 |
3 | x = 1
|
= help: Insert required import: `from future import generator_stop`
= help: Insert required import: `from __future__ import generator_stop`
Safe fix
1 1 | """Hello, world!"""

View File

@ -8,7 +8,7 @@ comment.py:1:1: I002 [*] Missing required import: `from __future__ import annota
2 |
3 | x = 1
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
1 1 | #!/usr/bin/env python3

View File

@ -7,7 +7,7 @@ comments_and_newlines.py:1:1: I002 [*] Missing required import: `from __future__
| I002
2 | # A copyright notice could go here
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
2 2 | # A copyright notice could go here

View File

@ -8,7 +8,7 @@ docstring.py:1:1: I002 [*] Missing required import: `from __future__ import anno
2 |
3 | x = 1
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
1 1 | """Hello, world!"""

View File

@ -7,7 +7,7 @@ docstring_with_continuation.py:1:1: I002 [*] Missing required import: `from __fu
| I002
2 | 1; y = 2
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
1 |-"""Hello, world!"""; x = \

View File

@ -6,7 +6,7 @@ docstring_with_semicolon.py:1:1: I002 [*] Missing required import: `from __futur
1 | """Hello, world!"""; x = 1
| I002
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
1 |-"""Hello, world!"""; x = 1

View File

@ -7,7 +7,7 @@ existing_import.py:1:1: I002 [*] Missing required import: `from __future__ impor
| I002
2 | import os
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
1 |+from __future__ import annotations

View File

@ -8,7 +8,7 @@ multiline_docstring.py:1:1: I002 [*] Missing required import: `from __future__ i
2 | b"""
3 | # b
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
1 1 | """a

View File

@ -8,7 +8,7 @@ off.py:1:1: I002 [*] Missing required import: `from __future__ import annotation
2 |
3 | x = 1
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
1 1 | # isort: off

View File

@ -8,7 +8,7 @@ comment.py:1:1: I002 [*] Missing required import: `from __future__ import annota
2 |
3 | x = 1
|
= help: Insert required import: `from future import annotations as _annotations`
= help: Insert required import: `from __future__ import annotations as _annotations`
Safe fix
1 1 | #!/usr/bin/env python3

View File

@ -7,7 +7,7 @@ comments_and_newlines.py:1:1: I002 [*] Missing required import: `from __future__
| I002
2 | # A copyright notice could go here
|
= help: Insert required import: `from future import annotations as _annotations`
= help: Insert required import: `from __future__ import annotations as _annotations`
Safe fix
2 2 | # A copyright notice could go here

View File

@ -8,7 +8,7 @@ docstring.py:1:1: I002 [*] Missing required import: `from __future__ import anno
2 |
3 | x = 1
|
= help: Insert required import: `from future import annotations as _annotations`
= help: Insert required import: `from __future__ import annotations as _annotations`
Safe fix
1 1 | """Hello, world!"""

View File

@ -7,7 +7,7 @@ docstring_with_continuation.py:1:1: I002 [*] Missing required import: `from __fu
| I002
2 | 1; y = 2
|
= help: Insert required import: `from future import annotations as _annotations`
= help: Insert required import: `from __future__ import annotations as _annotations`
Safe fix
1 |-"""Hello, world!"""; x = \

View File

@ -6,7 +6,7 @@ docstring_with_semicolon.py:1:1: I002 [*] Missing required import: `from __futur
1 | """Hello, world!"""; x = 1
| I002
|
= help: Insert required import: `from future import annotations as _annotations`
= help: Insert required import: `from __future__ import annotations as _annotations`
Safe fix
1 |-"""Hello, world!"""; x = 1

View File

@ -7,7 +7,7 @@ existing_import.py:1:1: I002 [*] Missing required import: `from __future__ impor
| I002
2 | import os
|
= help: Insert required import: `from future import annotations as _annotations`
= help: Insert required import: `from __future__ import annotations as _annotations`
Safe fix
1 |+from __future__ import annotations as _annotations

View File

@ -8,7 +8,7 @@ multiline_docstring.py:1:1: I002 [*] Missing required import: `from __future__ i
2 | b"""
3 | # b
|
= help: Insert required import: `from future import annotations as _annotations`
= help: Insert required import: `from __future__ import annotations as _annotations`
Safe fix
1 1 | """a

View File

@ -8,7 +8,7 @@ off.py:1:1: I002 [*] Missing required import: `from __future__ import annotation
2 |
3 | x = 1
|
= help: Insert required import: `from future import annotations as _annotations`
= help: Insert required import: `from __future__ import annotations as _annotations`
Safe fix
1 1 | # isort: off

View File

@ -8,7 +8,7 @@ docstring.py:1:1: I002 [*] Missing required import: `from __future__ import anno
2 |
3 | x = 1
|
= help: Insert required import: `from future import annotations`
= help: Insert required import: `from __future__ import annotations`
Safe fix
1 1 | """Hello, world!"""
@ -23,7 +23,7 @@ docstring.py:1:1: I002 [*] Missing required import: `from __future__ import gene
2 |
3 | x = 1
|
= help: Insert required import: `from future import generator_stop`
= help: Insert required import: `from __future__ import generator_stop`
Safe fix
1 1 | """Hello, world!"""

View File

@ -7,7 +7,7 @@ F401_18.py:5:12: F401 [*] `__future__` imported but unused
5 | import __future__
| ^^^^^^^^^^ F401
|
= help: Remove unused import: `future`
= help: Remove unused import: `__future__`
Safe fix
2 2 |

View File

@ -106,7 +106,7 @@ F841_0.py:36:5: F841 [*] Local variable `__` is assigned to but never used
| ^^ F841
37 | _discarded = 1
|
= help: Remove assignment to unused variable ``
= help: Remove assignment to unused variable `__`
Unsafe fix
33 33 |

View File

@ -7,7 +7,7 @@ UP001.py:2:5: UP001 [*] `__metaclass__ = type` is implied
2 | __metaclass__ = type
| ^^^^^^^^^^^^^^^^^^^^ UP001
|
= help: Remove `metaclass = type`
= help: Remove `__metaclass__ = type`
Safe fix
1 1 | class A:
@ -25,7 +25,7 @@ UP001.py:6:5: UP001 [*] `__metaclass__ = type` is implied
7 |
8 | def __init__(self) -> None:
|
= help: Remove `metaclass = type`
= help: Remove `__metaclass__ = type`
Safe fix
3 3 |

View File

@ -9,7 +9,7 @@ UP008.py:17:23: UP008 [*] Use `super()` instead of `super(__class__, self)`
18 | super(Child, self).method # wrong
19 | super(
|
= help: Remove `super` parameters
= help: Remove `__super__` parameters
Unsafe fix
14 14 | Parent.super(1, 2) # ok
@ -30,7 +30,7 @@ UP008.py:18:14: UP008 [*] Use `super()` instead of `super(__class__, self)`
19 | super(
20 | Child,
|
= help: Remove `super` parameters
= help: Remove `__super__` parameters
Unsafe fix
15 15 |
@ -53,7 +53,7 @@ UP008.py:19:14: UP008 [*] Use `super()` instead of `super(__class__, self)`
22 | | ).method() # wrong
| |_________^ UP008
|
= help: Remove `super` parameters
= help: Remove `__super__` parameters
Unsafe fix
16 16 | def wrong(self):
@ -76,7 +76,7 @@ UP008.py:36:14: UP008 [*] Use `super()` instead of `super(__class__, self)`
| ^^^^^^^^^^^^^^^ UP008
37 | super().f()
|
= help: Remove `super` parameters
= help: Remove `__super__` parameters
Unsafe fix
33 33 |
@ -95,7 +95,7 @@ UP008.py:50:18: UP008 [*] Use `super()` instead of `super(__class__, self)`
| ^^^^^^^^^^^^^^^ UP008
51 | super().f()
|
= help: Remove `super` parameters
= help: Remove `__super__` parameters
Unsafe fix
47 47 | super(MyClass, self).f() # CANNOT use super()

View File

@ -8,7 +8,7 @@ UP010.py:1:1: UP010 [*] Unnecessary `__future__` imports `generators`, `nested_s
2 | from __future__ import with_statement, unicode_literals
3 | from __future__ import absolute_import, division
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
1 |-from __future__ import nested_scopes, generators
@ -24,7 +24,7 @@ UP010.py:2:1: UP010 [*] Unnecessary `__future__` imports `unicode_literals`, `wi
3 | from __future__ import absolute_import, division
4 | from __future__ import generator_stop
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
1 1 | from __future__ import nested_scopes, generators
@ -42,7 +42,7 @@ UP010.py:3:1: UP010 [*] Unnecessary `__future__` imports `absolute_import`, `div
4 | from __future__ import generator_stop
5 | from __future__ import print_function, generator_stop
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
1 1 | from __future__ import nested_scopes, generators
@ -61,7 +61,7 @@ UP010.py:4:1: UP010 [*] Unnecessary `__future__` import `generator_stop` for tar
5 | from __future__ import print_function, generator_stop
6 | from __future__ import invalid_module, generators
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
1 1 | from __future__ import nested_scopes, generators
@ -80,7 +80,7 @@ UP010.py:5:1: UP010 [*] Unnecessary `__future__` imports `generator_stop`, `prin
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UP010
6 | from __future__ import invalid_module, generators
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
2 2 | from __future__ import with_statement, unicode_literals
@ -100,7 +100,7 @@ UP010.py:6:1: UP010 [*] Unnecessary `__future__` import `generators` for target
7 |
8 | if True:
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
3 3 | from __future__ import absolute_import, division
@ -119,7 +119,7 @@ UP010.py:9:5: UP010 [*] Unnecessary `__future__` import `generator_stop` for tar
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UP010
10 | from __future__ import generators
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
6 6 | from __future__ import invalid_module, generators
@ -139,7 +139,7 @@ UP010.py:10:5: UP010 [*] Unnecessary `__future__` import `generators` for target
11 |
12 | if True:
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
7 7 |
@ -157,7 +157,7 @@ UP010.py:13:5: UP010 [*] Unnecessary `__future__` import `generator_stop` for ta
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UP010
14 | from __future__ import invalid_module, generators
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
10 10 | from __future__ import generators
@ -173,7 +173,7 @@ UP010.py:14:5: UP010 [*] Unnecessary `__future__` import `generators` for target
14 | from __future__ import invalid_module, generators
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UP010
|
= help: Remove unnecessary `future` import
= help: Remove unnecessary `__future__` import
Safe fix
11 11 |