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

Deprecate support for python 3.8 #54

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

DhruvSkyy
Copy link
Collaborator

@DhruvSkyy DhruvSkyy commented Sep 21, 2023

Python 3.9 introduced type hinting generics in standard collections via PEP 585.

Replaced typing.list to list for datasets.py and validators.py.
Also changed typing.collections to collections.abc.Iterable for validators.py.

Did not remove typing.Optional, typing.Union, typing.Any, typing.Literal and typing.ClassVar as these were not mentioned to be deprecated on https://peps.python.org/pep-0585/.

Removed support for Python 3.8 from the following files:

  • pyproject.toml
  • .github/workflows/test_and_deploy.yml

@sonarcloud
Copy link

sonarcloud bot commented Sep 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (a7c18f3) 97.74% compared to head (f77af4f) 97.74%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #54   +/-   ##
=======================================
  Coverage   97.74%   97.74%           
=======================================
  Files           8        8           
  Lines         310      310           
=======================================
  Hits          303      303           
  Misses          7        7           
Files Changed Coverage Δ
movement/datasets.py 90.00% <100.00%> (-0.91%) ⬇️
movement/io/validators.py 99.18% <100.00%> (+<0.01%) ⬆️

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

@DhruvSkyy DhruvSkyy marked this pull request as ready for review September 21, 2023 18:54
@DhruvSkyy DhruvSkyy marked this pull request as draft September 21, 2023 18:54
@DhruvSkyy DhruvSkyy marked this pull request as ready for review September 21, 2023 19:19
Copy link
Member

@niksirbi niksirbi left a comment

Choose a reason for hiding this comment

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

Great work @DhruvSkyy !
Congrats on getting your first PR approved 🍾 !!

I will merge this as is.

My only pedantic quibble is to use more informative names for branches in the future. For example, something like remove-python38 is what I would probably use as a branch name here.

@niksirbi niksirbi merged commit 5d40383 into neuroinformatics-unit:main Sep 22, 2023
16 checks passed
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