-
Notifications
You must be signed in to change notification settings - Fork 525
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
Auto-Linting: Spelling Black Style Checker #2800
Conversation
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.
Just a couple minor edits
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2800 +/- ##
=======================================
Coverage 87.00% 87.01%
=======================================
Files 763 763
Lines 87213 87213
=======================================
+ Hits 75881 75886 +5
+ Misses 11332 11327 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 73 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. |
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 went through the contrib files and noted a few places where user code could break. I'm still in favor of merging, just making sure people are aware.
def ScenariosFromBoostrap(self, addtoSet, numtomake, seed=None): | ||
def ScenariosFromBootstrap(self, addtoSet, numtomake, seed=None): |
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.
This could break a user's code, right? Should a deprecation path be added?
name = "Boostrap" + str(index) | ||
name = "Bootstrap" + str(index) |
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.
Is this name used anywhere?
class TightenContraintFromVars(IsomorphicTransformation): | ||
class TightenConstraintFromVars(IsomorphicTransformation): |
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.
This could potentially break a user's code, although TransformationFactory
would be the usual way to construct this object, which doesn't change, and the transformation is already deprecated.
Fixes #329
Summary/Motivation:
Finally, this is the PR that adds in the auto-linting pre-req for the regular testing suite.
Changes proposed in this PR:
.github/workflows/typos.toml
examples/pyomobook/python-ch/BadIndent.py
file as it is intentionally wrong).git-blame-ignore-revs
file which can be used to ignore all of the black style changes when running agit blame
command:git blame --ignore-revs-file .git-blame-ignore-revs
git config blame.ignoreRevsFile .git-blame-ignore-revs
Legal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: