-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into index_chunksize
- Loading branch information
Showing
460 changed files
with
13,526 additions
and
11,767 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
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,15 @@ | ||
# transition to isort | ||
7edfcee093cca277307aabdb180e0ffc69768291 | ||
81418e459f16c48d6b7a75d6ef8035dfe9651b39 | ||
|
||
# transition to black | ||
ebadee629414aed2c7b6526e22a419205329ec38 | ||
|
||
# automated trailing whitespace removal | ||
3ee548b04a41dfbc009921c492fba6a0682651ca | ||
|
||
# converting to f-strings | ||
ad898e8e3954bc348daaa449d5ed73db778785e9 | ||
ef51ad5199692afcf1a8ab491aa115c00c423113 | ||
323ac4ddd4e99d6b951666736d4e9b03b6cfa21e | ||
f7445f02022293f1b089cd8907000301516354bf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Auto review bad practice | ||
on: [pull_request] | ||
|
||
jobs: | ||
h5py-bad-practices: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: check-h5py-import | ||
# check that we don't alias h5py to h5 | ||
# reason: discoverability is important since this module's api | ||
# is unstable and we want to be able to check for potential future failures | ||
id: h5-import | ||
run: | | ||
grep -r -n "import _h5py as h5" yt | grep -v "import _h5py as h5py" | cat > h5-imports.log | ||
if [ -s h5-imports.log ] ; then | ||
echo "Please do not import h5py as h5. Here are the faulty lines." | ||
cat h5-imports.log | ||
exit 1 | ||
fi | ||
- name: check-h5py-filemode | ||
id: h5-file-mode | ||
# check that a mode argument is always present in calls to h5py.File() | ||
# reason: the default value is different in older versions 'w' VS newer ones 'r' | ||
run: | | ||
grep -E -r -n "h5py\.File\([^,]+\)" yt | cat > h5-mode.log | ||
if [ -s h5-mode.log ] ; then | ||
echo "h5py.File() should never be called without an explicit mode argument." | ||
echo "Here are the faulty lines." | ||
cat h5-mode.log | ||
exit 1 | ||
fi |
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,20 @@ | ||
name: Slash Command Dispatch | ||
on: | ||
issue_comment: | ||
types: [created] | ||
jobs: | ||
slashCommandDispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Slash Command Dispatch | ||
uses: peter-evans/slash-command-dispatch@v2 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
commands: | | ||
help | ||
format | ||
rebase | ||
isort | ||
black | ||
flynt | ||
repository: yt-project/slash-command-processor |
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,79 @@ | ||
name: Style Checks | ||
on: [pull_request] | ||
|
||
jobs: | ||
flake8: | ||
name: flake8 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Python | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: 3.8 | ||
- name: install | ||
id: install | ||
run : pip install -r tests/lint_requirements.txt | ||
|
||
- name: check | ||
id: flake8 | ||
run: | | ||
flake8 --version | ||
flake8 yt/ | ||
black: | ||
name: black | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Python | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: 3.8 | ||
- name: install | ||
id: install | ||
run : pip install -r tests/lint_requirements.txt | ||
|
||
- name: check | ||
id: black | ||
run: | | ||
black --version | ||
black --check --diff yt/ | ||
isort: | ||
name: isort | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Python | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: 3.8 | ||
- name: install | ||
id: install | ||
run : pip install -r tests/lint_requirements.txt | ||
|
||
- name: check | ||
id: isort | ||
run: | | ||
isort --version-number | ||
isort . --check --diff | ||
flynt: | ||
name: flynt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Python | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: 3.8 | ||
- name: install | ||
id: install | ||
run : pip install -r tests/lint_requirements.txt | ||
|
||
- name: check | ||
id: flynt | ||
run: | | ||
flynt --version | ||
flynt yt --fail-on-change --dry-run --exclude yt/extern |
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,17 @@ | ||
- repo: https://github.com/ambv/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black | ||
language_version: python3.7 | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: '5.2.1' # keep in sync with tests/lint_requirements.txt | ||
hooks: | ||
- id: isort | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: '3.8.1' # keep in sync with tests/lint_requirements.txt | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/ikamensh/flynt | ||
rev: '0.52' # keep in sync with tests/lint_requirements.txt | ||
hooks: | ||
- id: flynt |
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.