-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: run black on all PRs * chore: `black .` * Update prio_semaphore.py * Create pyproject.yaml * Update __init__.py * Update future.py * Update property.py * chore: `black .` * Update task.py * Update task.py * Update prio_semaphore.py * chore: `black .` * Update property.py --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
9ad8caf
commit 687b369
Showing
70 changed files
with
3,505 additions
and
1,431 deletions.
There are no files selected for viewing
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: Black Formatter | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} # Check out the PR branch | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install Black | ||
run: pip install black | ||
|
||
- name: Run Black | ||
run: black . | ||
|
||
- name: Check for changes | ||
id: changes | ||
run: | | ||
if [[ -n $(git status --porcelain) ]]; then | ||
echo "changes_detected=true" >> $GITHUB_ENV | ||
else | ||
echo "changes_detected=false" >> $GITHUB_ENV | ||
fi | ||
- name: Commit changes | ||
if: env.changes_detected == 'true' | ||
run: | | ||
git config --local user.name "github-actions[bot]" | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore: \`black .\`" | ||
git push |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
|
||
from typed_envs import EnvVarFactory | ||
|
||
envs = EnvVarFactory("EZASYNC") | ||
|
||
# We have some envs here to help you debug your custom class implementations | ||
|
||
# If you're only interested in debugging a specific class, set this to the class name | ||
DEBUG_CLASS_NAME = envs.create_env("DEBUG_CLASS_NAME", str, default='', verbose=False) | ||
DEBUG_CLASS_NAME = envs.create_env("DEBUG_CLASS_NAME", str, default="", verbose=False) | ||
|
||
# Set this to enable debug mode on all classes | ||
DEBUG_MODE = envs.create_env("DEBUG_MODE", bool, default=DEBUG_CLASS_NAME, verbose=False) | ||
DEBUG_MODE = envs.create_env( | ||
"DEBUG_MODE", bool, default=DEBUG_CLASS_NAME, verbose=False | ||
) |
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.