-
-
Notifications
You must be signed in to change notification settings - Fork 661
ruff #2882
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
base: main
Are you sure you want to change the base?
ruff #2882
Conversation
|
will need a |
…s import - Restore null=True on companies.Company contact/email/url fields to avoid unintended schema change (noqa DJ001 since removal needs migration) - Guard against None return from fix_image() in fix_success_story_images - Re-add jobs.listeners import in JobsAppConfig.ready() for signal registration - Prefix unused unpacked variables with underscore for RUF059 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…nges Ruff DJ001 removed null=True from ~30 string-based model fields, but this changes the DB schema and requires migrations + data handling. Restore null=True with noqa: DJ001 to keep this as a formatting-only PR. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- cms/tests.py: add tzinfo=datetime.UTC to satisfy DTZ001, update assertion - users/apps.py: restore `import users.listeners` (signal for auth token auto-creation removed by ruff F401) - fixes all API test 401s/errors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| @@ -0,0 +1,77 @@ | |||
| target-version = "py312" | |||
| line-length = 120 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave the decision up to you, and I'm generally in favour of all this autoformatting, but I'm not a fan of very wide lines.
Sure, screens are bigger nowadays, but I find a lot of my time is spent in code reviews, with side-by-side code diffs. Longer lines means more wrapping, and harder to review diffs.
Here's a diff on my MacBook display, which can fit about 83 chars on one side of the GitHub diff UI:
When I do use a larger monitor, I tend to have two side-by-side windows, so one window with side-by-side diffs is again narrower.
Description