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

Remove pin on Pylint to support Python 3.11 #260

Merged
merged 3 commits into from
Apr 8, 2024
Merged

Conversation

GraemeWatt
Copy link
Member

@GraemeWatt GraemeWatt commented Mar 28, 2024

  • Remove "pylintrc" and "tests/pylintrc" configuration files.
  • Tweaked code so that Pylint checks all pass.
  • Add Python 3.11 and ROOT 6.30 to matrix in tests.yml.
  • Skip Pylint step in CI for Python 3.6 and Python 3.7, since these Python versions are incompatible with Pylint 3.x.
  • ROOT binary built with Python 3.12 not yet supported by Micromamba, so don't include Python 3.12 in test matrix.
  • Closes Upgrade Pylint to allow use with Python 3.11 #234 and fixes the build currently broken in PR Data licence addition #257.

📚 Documentation preview 📚: https://hepdata-lib--260.org.readthedocs.build/en/260/

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.75%. Comparing base (eb392fe) to head (4baa23f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #260      +/-   ##
==========================================
+ Coverage   87.99%   89.75%   +1.75%     
==========================================
  Files           5        5              
  Lines        1083     1083              
  Branches      231      241      +10     
==========================================
+ Hits          953      972      +19     
+ Misses         91       80      -11     
+ Partials       39       31       -8     
Flag Coverage Δ
unittests-3.10 89.75% <100.00%> (+1.75%) ⬆️
unittests-3.11 89.75% <100.00%> (?)
unittests-3.6 89.45% <100.00%> (+1.77%) ⬆️
unittests-3.7 89.45% <100.00%> (+1.77%) ⬆️
unittests-3.8 89.56% <100.00%> (+1.75%) ⬆️
unittests-3.9 89.56% <100.00%> (+1.75%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

* pylintrc and tests/pylintrc generated with Pylint 3.1.0 by running
  "pylint --generate-rcfile" in a Python 3.11 virtual environment.
* Tweaked code and "pylintrc" files so that Pylint checks all pass.
* Add Python 3.11 and ROOT 6.30 to matrix in tests.yml.
* Skip Pylint step in CI for Python 3.6 and Python 3.7.
* ROOT binary built with Python 3.12 not yet supported by Micromamba.
* Closes #234.
@GraemeWatt GraemeWatt changed the title Remove pin on Pylint to support Python 3.11/3.12 Remove pin on Pylint to support Python 3.11 Mar 28, 2024
@GraemeWatt GraemeWatt marked this pull request as ready for review March 28, 2024 21:44
@GraemeWatt GraemeWatt mentioned this pull request Mar 28, 2024
Copy link
Collaborator

@clelange clelange left a comment

Choose a reason for hiding this comment

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

Thanks, it's very useful to remove the pin on pylint! I left two comments for your consideration before merging this.

pylintrc Outdated Show resolved Hide resolved
tests/pylintrc Outdated Show resolved Hide resolved
* Just use default Pylint configuration making sure that checks pass.
* Tweak code for "consider-using-f-string" and "unspecified-encoding".
* Need to disable "no-name-in-module" and "no-member" checks for ROOT.
@clelange clelange merged commit db53815 into main Apr 8, 2024
20 checks passed
@clelange clelange deleted the upgrade-pylint branch April 8, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Pylint to allow use with Python 3.11
2 participants