-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into arbitrary-cli-overrides
- Loading branch information
Showing
172 changed files
with
5,347 additions
and
1,786 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S308.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from django.utils.safestring import mark_safe | ||
|
||
|
||
def some_func(): | ||
return mark_safe('<script>alert("evil!")</script>') | ||
|
||
|
||
@mark_safe | ||
def some_func(): | ||
return '<script>alert("evil!")</script>' | ||
|
||
|
||
from django.utils.html import mark_safe | ||
|
||
|
||
def some_func(): | ||
return mark_safe('<script>alert("evil!")</script>') | ||
|
||
|
||
@mark_safe | ||
def some_func(): | ||
return '<script>alert("evil!")</script>' |
17 changes: 13 additions & 4 deletions
17
crates/ruff_linter/resources/test/fixtures/flake8_trio/TRIO100.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
import trio | ||
|
||
|
||
async def foo(): | ||
async def func(): | ||
with trio.fail_after(): | ||
... | ||
|
||
async def foo(): | ||
|
||
async def func(): | ||
with trio.fail_at(): | ||
await ... | ||
|
||
async def foo(): | ||
|
||
async def func(): | ||
with trio.move_on_after(): | ||
... | ||
|
||
async def foo(): | ||
|
||
async def func(): | ||
with trio.move_at(): | ||
await ... | ||
|
||
|
||
async def func(): | ||
with trio.move_at(): | ||
async with trio.open_nursery() as nursery: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.