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

Fix isort via pre-commit #845

Merged
merged 2 commits into from
Sep 14, 2022
Merged

Fix isort via pre-commit #845

merged 2 commits into from
Sep 14, 2022

Conversation

feluelle
Copy link
Member

Description

What is the current behavior?

Currently, isort via pre-commit is not running correctly over all related files.

What is the new behavior?

It runs properly over all related files.

Does this introduce a breaking change?

No.

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

@@ -70,15 +70,13 @@ repos:
rev: 5.10.1
hooks:
- id: isort
name: Run isort to sort imports in Python files
name: Run isort for python-sdk
Copy link
Collaborator

Choose a reason for hiding this comment

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

@feluelle Any reason we are doing this separately for Python/SQL SDK?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question. I don't know. 🤷 @dimberman could you help us please?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah it doens't need too -- isort work per file basis afaik, so merging them into a single job is fine too

@codecov
Copy link

codecov bot commented Sep 14, 2022

Codecov Report

Base: 93.09% // Head: 93.10% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (df60f27) compared to base (9d36ddc).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #845      +/-   ##
==========================================
+ Coverage   93.09%   93.10%   +0.01%     
==========================================
  Files          47       47              
  Lines        2043     2046       +3     
  Branches      256      256              
==========================================
+ Hits         1902     1905       +3     
  Misses        109      109              
  Partials       32       32              
Impacted Files Coverage Δ
python-sdk/src/astro/databases/__init__.py 100.00% <ø> (ø)
python-sdk/src/astro/files/__init__.py 100.00% <ø> (ø)
python-sdk/src/astro/files/locations/amazon/s3.py 100.00% <ø> (ø)
python-sdk/src/astro/files/locations/base.py 74.35% <ø> (ø)
python-sdk/src/astro/files/locations/google/gcs.py 100.00% <ø> (ø)
python-sdk/src/astro/files/operators/files.py 100.00% <ø> (ø)
python-sdk/src/astro/files/types/csv.py 100.00% <ø> (ø)
python-sdk/src/astro/files/types/json.py 100.00% <ø> (ø)
python-sdk/src/astro/files/types/ndjson.py 100.00% <ø> (ø)
python-sdk/src/astro/files/types/parquet.py 100.00% <ø> (ø)
... and 23 more

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.

@kaxil kaxil merged commit 8b79c39 into main Sep 14, 2022
@kaxil kaxil deleted the fix/pre-commit-isort branch September 14, 2022 15:29
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.

3 participants