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

Resolve CI failures from new version (1.20.4) of spellchecker #1389

Merged
merged 6 commits into from
Apr 4, 2024

Conversation

lbianchi-lbl
Copy link
Contributor

Fixes

Summary/Motivation:

Changes proposed in this PR:

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the license terms described in the LICENSE.txt file at the top level of this directory.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@lbianchi-lbl lbianchi-lbl self-assigned this Apr 3, 2024
@lbianchi-lbl lbianchi-lbl changed the title Resolve CI failures from new version of spellchecker Resolve CI failures from new version (1.20.3) of spellchecker Apr 3, 2024
Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.62%. Comparing base (8948c6c) to head (afb7537).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1389      +/-   ##
==========================================
- Coverage   77.62%   77.62%   -0.01%     
==========================================
  Files         391      391              
  Lines       64375    64375              
  Branches    14257    14257              
==========================================
- Hits        49973    49970       -3     
- Misses      11830    11834       +4     
+ Partials     2572     2571       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

hd = "hd"
Tge = "Tge"
iy = "iy"
frst = "frst" # variable name in idaes/core/util/model_serializer.py
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems risky to me, as "frst" could be a common typo of "first" and wouldn't be caught. Would changing the name to "first" raise any issues or difficulties elsewhere in the codebase?

frst = True # on first item when true

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 an excellent point, thanks. As it's a local variable, I think we can change frst in the code and remove it from the list of known false positives.

Copy link
Contributor

Choose a reason for hiding this comment

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

For what it's worth, I changed ws in some of our code due to it being a common misspelling of was. This is likely a good idea to change.

@lbianchi-lbl lbianchi-lbl changed the title Resolve CI failures from new version (1.20.3) of spellchecker Resolve CI failures from new version (1.20.4) of spellchecker Apr 4, 2024
@lbianchi-lbl lbianchi-lbl merged commit 923df9e into IDAES:main Apr 4, 2024
27 of 28 checks passed
andrewlee94 pushed a commit that referenced this pull request Apr 10, 2024
* Resolve CI failures from new version (1.20.4) of spellchecker (#1389)

* Empty commit to verify failures on main

* Resolve likely false positives

* Resolve likely true positives

* Resolve probable true positive

* Remove "frst" from typos exclusions

* Remove "ans" from typos exclusions b/c crate-ci/typos#981

* Fix target for 'fv' (flowsheet visualizer) reference (#1391)

* outputs

* fix hyperlink

* put this back

* put this back2

* replace with simple hyperlink

* Updating black and rerunning it on all files (#1388)

* Updating black and rerunning it on all files

* Remove duplicated Black requirement

* Update Black rev in pre-commit config

---------

Co-authored-by: Ludovico Bianchi <lbianchi@lbl.gov>

---------

Co-authored-by: Ludovico Bianchi <lbianchi@lbl.gov>
Co-authored-by: Dan Gunter <dkgunter@lbl.gov>
Co-authored-by: Keith Beattie <ksbeattie@lbl.gov>
@ksbeattie ksbeattie added the Priority:Normal Normal Priority Issue or PR label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Normal Normal Priority Issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants