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

fixing some E502 outside of schemes and combinat #35317

Merged
merged 2 commits into from Apr 6, 2023

Conversation

fchapoton
Copy link
Contributor

πŸ“š Description

This fixes some pycodestyle warnings about

E502 the backslash is redundant between brackets

in py files outside the folders combinat/ and schemes/

πŸ“ Checklist

  • I have made sure that the title is self-explanatory and the description concisely explains the PR.
  • I have linked an issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation accordingly.

βŒ› Dependencies

@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2023

Codecov Report

Patch coverage: 76.54% and project coverage change: -0.01 ⚠️

Comparison is base (c00e6c2) 88.62% compared to head (b12a307) 88.61%.

❗ Current head b12a307 differs from pull request most recent head 3dd56c5. Consider uploading reports for the commit 3dd56c5 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #35317      +/-   ##
===========================================
- Coverage    88.62%   88.61%   -0.01%     
===========================================
  Files         2148     2148              
  Lines       398855   398847       -8     
===========================================
- Hits        353480   353435      -45     
- Misses       45375    45412      +37     
Impacted Files Coverage Ξ”
src/sage/interfaces/maxima_abstract.py 82.24% <0.00%> (ΓΈ)
src/sage/libs/ntl/all.py 100.00% <ΓΈ> (ΓΈ)
...uadratic_forms/quadratic_form__reduction_theory.py 72.51% <31.03%> (+0.68%) ⬆️
src/sage/interfaces/singular.py 88.83% <50.00%> (ΓΈ)
...function_field/drinfeld_modules/drinfeld_module.py 96.03% <50.00%> (ΓΈ)
src/sage/symbolic/assumptions.py 90.56% <50.00%> (ΓΈ)
src/sage/databases/sql_db.py 79.11% <73.33%> (ΓΈ)
src/sage/crypto/mq/rijndael_gf.py 80.09% <75.00%> (ΓΈ)
...bras/lie_conformal_algebra_with_structure_coefs.py 96.77% <81.81%> (ΓΈ)
...e_conformal_algebras/weyl_lie_conformal_algebra.py 91.89% <81.81%> (+2.14%) ⬆️
... and 15 more

... and 24 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

β˜” View full report in Codecov by Sentry.
πŸ“’ Do you have feedback about the report comment? Let us know in this issue.

@@ -87,29 +87,31 @@ def __init__(self, R, ngens=2, names=None, index_set=None):
"""
from sage.rings.integer_ring import ZZ
try:
assert (ngens in ZZ and ngens > 0 and ngens % 2 == 0)
assert (ngens in ZZ and ngens > 0 and not ngens % 2)
except AssertionError:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of this replacement. Seems harder to read for me after the change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more pythonic and slightly faster.

@github-actions
Copy link

Documentation preview for this PR is ready! πŸŽ‰
Built with commit: 3dd56c5

@vbraun vbraun merged commit ff95388 into sagemath:develop Apr 6, 2023
5 checks passed
@mkoeppe mkoeppe added this to the sage-10.0 milestone Apr 7, 2023
@fchapoton fchapoton deleted the fixing_some_E502_py1 branch July 16, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants