Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff preview mode #3024

Merged
merged 37 commits into from
Oct 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1cca9b9
Enable ruff preview mode
CoolCat467 Aug 4, 2024
12589fc
Automatic preview fixes
CoolCat467 Aug 4, 2024
03c50ed
Manually-reviewed preview unsafe autofixes
CoolCat467 Aug 4, 2024
240d050
Manually fix a few trivial issues
CoolCat467 Aug 4, 2024
78c6c74
Ignore `PYI063` and add comments everywhere
CoolCat467 Aug 4, 2024
4061f6a
Manual fixes
CoolCat467 Aug 4, 2024
155b6d1
Fix a bunch of test issues
CoolCat467 Aug 4, 2024
65cf29d
More test fixes
CoolCat467 Aug 4, 2024
10c7926
Fix missing await
CoolCat467 Aug 4, 2024
9b3b6a2
Fix missing async marker
CoolCat467 Aug 4, 2024
997016e
Merge branch 'main' into ruff-preview-mode
CoolCat467 Aug 21, 2024
c545d72
Change to not use pi to avoid FURB152 triggering
CoolCat467 Aug 22, 2024
0a41c88
Parenthesis are not required
CoolCat467 Aug 22, 2024
06bcfc6
Use `Path` to read and write files instead of doing it manually
CoolCat467 Aug 22, 2024
4776a76
Use `extend` instead of repeated `append`
CoolCat467 Aug 22, 2024
1dc61f3
FURB131 Prefer `clear` over deleting a full slice
CoolCat467 Aug 22, 2024
b0f273c
UP031 Use format specifiers instead of percent format
CoolCat467 Aug 22, 2024
37a0f28
A005 Module is shadowing python standard library
CoolCat467 Aug 22, 2024
240c1b4
A004 Ignore exceptiongroup imports shadowing builtins
CoolCat467 Aug 22, 2024
b2d9c5b
Merge branch 'main' into ruff-preview-mode
CoolCat467 Aug 22, 2024
3eb8328
Add type annotation for `out`
CoolCat467 Aug 22, 2024
8f0ae46
Merge remote-tracking branch 'origin/main' into ruff-preview-mode
CoolCat467 Sep 20, 2024
7dd9ae5
I don't think `newline` should be required
CoolCat467 Sep 20, 2024
0c53be9
Add missing explain comment
CoolCat467 Sep 20, 2024
198e641
Remove duplicate overload I somehow introduced
CoolCat467 Sep 20, 2024
8588018
Update to ruff 0.6.6
CoolCat467 Sep 20, 2024
ad10b07
Merge branch 'main' into ruff-preview-mode
CoolCat467 Sep 24, 2024
d2a4031
Disable RUF029 in test files
CoolCat467 Sep 24, 2024
924b6dd
Fix several things from review
CoolCat467 Sep 24, 2024
a38f7f6
Fix more remnants of old that got removed
CoolCat467 Sep 24, 2024
fe334dc
Ignore `A005`
CoolCat467 Sep 24, 2024
287d690
Merge remote-tracking branch 'origin/main' into ruff-preview-mode
CoolCat467 Oct 2, 2024
d8ffd87
Revert formatting changes from prior noqa lines that exist no longer
CoolCat467 Oct 2, 2024
31d416d
Revert other formatting in same files
CoolCat467 Oct 2, 2024
0aaa21f
Merge remote-tracking branch 'origin/main' into ruff-preview-mode
CoolCat467 Oct 7, 2024
03d4061
Merge remote-tracking branch 'origin/main' into ruff-preview-mode
CoolCat467 Oct 9, 2024
ded5cac
Merge branch 'main' into ruff-preview-mode
CoolCat467 Oct 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/trio/_tools/gen_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def process(files: Iterable[File], *, do_test: bool) -> None:
print("Generated sources are up to date.")
else:
for new_path, new_source in new_files.items():
Path(new_path).write_text(new_source, encoding="utf-8", newline="\n")
Path(new_path).write_text(new_source, encoding="utf-8")
CoolCat467 marked this conversation as resolved.
Show resolved Hide resolved
print("Regenerated sources successfully.")
if not matches_disk:
# With pre-commit integration, show that we edited files.
Expand Down
Loading