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

Update CI to use Python 3.11 #4038

Merged
merged 4 commits into from
Nov 8, 2022
Merged

Update CI to use Python 3.11 #4038

merged 4 commits into from
Nov 8, 2022

Conversation

greg-finley
Copy link
Contributor

Was just curious if it works yet. If so, why not?

result["selectables"] = [
s.as_str() for s in self.selectables
] # type: ignore
result["selectables"] = [s.as_str() for s in self.selectables]
Copy link
Contributor Author

@greg-finley greg-finley Nov 7, 2022

Choose a reason for hiding this comment

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

3.11 thinks that this ignore is not needed, but someone with an old Python locally would get the opposite error when they try to commit.

We could keep the mypy check on 3.10, or also just wait 6 months to do this PR.

Copy link
Member

Choose a reason for hiding this comment

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

what's the error? There might be another way around the type hinting here to make both of them happy.

Copy link
Member

Choose a reason for hiding this comment

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

actually - I'm running an older version so I can check myself! Have just pushed a fix which should work for both.

@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Base: 99.93% // Head: 99.93% // No change to project coverage 👍

Coverage data is based on head (03e2877) compared to base (8161a9a).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4038   +/-   ##
=======================================
  Coverage   99.93%   99.93%           
=======================================
  Files         190      190           
  Lines       14536    14536           
=======================================
  Hits        14527    14527           
  Misses          9        9           
Impacted Files Coverage Δ
src/sqlfluff/utils/analysis/select_crawler.py 100.00% <100.00%> (ø)

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@alanmcruickshank
Copy link
Member

Great idea @greg-finley - the potential speed improvements in 3.11 would be a good addition to the test suite.

Copy link
Member

@alanmcruickshank alanmcruickshank left a comment

Choose a reason for hiding this comment

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

LGTM

@alanmcruickshank alanmcruickshank merged commit f082150 into main Nov 8, 2022
@alanmcruickshank alanmcruickshank deleted the 3.11-ci branch November 8, 2022 13:57
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.

2 participants