-
Notifications
You must be signed in to change notification settings - Fork 9
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
Refactor #97
Merged
xhochy
merged 13 commits into
data-engineering-collective:main
from
ThomasMarwitzQC:refactor
Nov 6, 2023
Merged
Refactor #97
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
daf0d3c
Add Python 3.12 to CI
ThomasMarwitzQC 2b10cbb
Port project completely to pyproject.toml
ThomasMarwitzQC 359a7cd
Install ruff pre-commit-hook
ThomasMarwitzQC fe83151
Fix all problems pointed out by ruff
ThomasMarwitzQC 089faf1
Add auto update workflow for pre-commit-hooks
ThomasMarwitzQC 05fd193
Replace setuptools with pip
ThomasMarwitzQC 4cab6af
Address issue #44: determine version programmatically.
ThomasMarwitzQC dcdff85
Update changes.rst
ThomasMarwitzQC ce53708
Simplify code in docs/conf.py.
ThomasMarwitzQC 5c40e29
Install ruff formatter
ThomasMarwitzQC ebe66d4
Update config to use ruff isort
ThomasMarwitzQC 9398e85
Install qc version of hook
ThomasMarwitzQC 0d2d766
Unify ruff hooks in single section
ThomasMarwitzQC File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: pre-commit autoupdate | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 6 4 * *" | ||
|
||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
|
||
jobs: | ||
check_update: | ||
name: Check if newer version exists | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
# We need to checkout with SSH here to have actions run on the PR. | ||
with: | ||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
- name: Set up Conda env | ||
uses: mamba-org/setup-micromamba@db1df3ba9e07ea86f759e98b575c002747e9e757 | ||
with: | ||
environment-name: pre-commit | ||
create-args: >- | ||
-c | ||
conda-forge | ||
pre-commit | ||
mamba | ||
- name: Update pre-commit hooks and run | ||
id: versions | ||
env: | ||
PRE_COMMIT_USE_MAMBA: 1 | ||
run: | | ||
pre-commit autoupdate | ||
pre-commit run -a || true | ||
- uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 | ||
with: | ||
commit-message: "Auto-update pre-commit hooks" | ||
title: "Auto-update pre-commit hooks" | ||
body: | | ||
New versions of the used pre-commit hooks were detected. | ||
This PR updates them to the latest and already ran `pre-commit run -a` for you to fix any changes in formatting. | ||
branch: pre-commit-autoupdate | ||
delete-branch: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ conda: | |
|
||
python: | ||
install: | ||
- method: setuptools | ||
- method: pip | ||
path: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a single ruff section?