-
-
Notifications
You must be signed in to change notification settings - Fork 320
test: enable ruff rule PT #1837
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: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1837 +/- ##
=======================================
Coverage 97.99% 97.99%
=======================================
Files 60 60
Lines 2691 2691
=======================================
Hits 2637 2637
Misses 54 54 ☔ View full report in Codecov by Sentry. |
Lee-W
left a comment
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.
mostly good, 1 nit
tests/conftest.py
Outdated
| f"gpg --batch --yes --debug-quick-random --passphrase '' --quick-gen-key '{SIGNER} {SIGNER_MAIL}'" | ||
| ) | ||
| if c.return_code != 0: | ||
| raise Exception(f"gpg keygen failed with err: '{c.err}'") |
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.
| raise Exception(f"gpg keygen failed with err: '{c.err}'") | |
| raise Exception(f"gpg keygen failed with err: '{c.err}'") | |
| raise subprocess.CalledProcessError( | |
| returncode=c.return_code, | |
| cmd="gpg --batch --yes --debug-quick-random --passphrase '' --quick-gen-key", | |
| stderr=c.err, | |
| ) |
or we can create an exception for it
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.
Thanks!
(AI was used to assist generating this section)
It turns out that I just had to run uv run ruff check --fix --unsafe-fixes
98438a0 to
ddce169
Compare
It turns out that I just had to run uv run ruff check --fix --unsafe-fixes for PT006 and PT007