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

ci: update pip constraints and pre-commit config #125

Merged
merged 5 commits into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .constraints/py3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ babel==2.9.1
backcall==0.2.0
backports.entry-points-selectable==1.1.1
beautifulsoup4==4.10.0
black==21.10b0
black==21.11b0
bleach==4.1.0
certifi==2021.10.8
cffi==1.15.0
Expand All @@ -31,7 +31,7 @@ distlib==0.3.3
docutils==0.16
entrypoints==0.3
execnet==1.9.0
filelock==3.3.2
filelock==3.4.0
flake8==4.0.1
flake8-blind-except==0.2.0
flake8-bugbear==21.9.2
Expand All @@ -47,10 +47,10 @@ fuzzywuzzy==0.18.0
gitdb==4.0.9
gitpython==3.1.24
gprof2dot==2021.2.21
graphviz==0.18.1
graphviz==0.18.2
greenlet==1.1.2
hepunits==2.1.2
identify==2.3.5
identify==2.3.6
idna==3.3
imagesize==1.3.0
importlib-metadata==4.8.2
Expand All @@ -61,7 +61,7 @@ ipython==7.29.0
ipython-genutils==0.2.0
ipywidgets==7.6.5
isort==5.10.1
jedi==0.18.0
jedi==0.18.1
jinja2==3.0.3
json5==0.9.6
jsonschema==4.2.1
Expand Down Expand Up @@ -97,7 +97,7 @@ nbdime==3.1.1
nbformat==5.1.3
nest-asyncio==1.5.1
nodeenv==1.6.0
notebook==6.4.5
notebook==6.4.6
packaging==21.2
pandocfilters==1.5.0
parso==0.8.2
Expand Down Expand Up @@ -147,7 +147,7 @@ send2trash==1.8.0
six==1.16.0
smmap==5.0.0
sniffio==1.2.0
snowballstemmer==2.1.0
snowballstemmer==2.2.0
soupsieve==2.3.1
sphinx==4.3.0
sphinx-autobuild==2021.3.14
Expand Down
14 changes: 7 additions & 7 deletions .constraints/py3.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ babel==2.9.1
backcall==0.2.0
backports.entry-points-selectable==1.1.1
beautifulsoup4==4.10.0
black==21.10b0
black==21.11b0
bleach==4.1.0
certifi==2021.10.8
cffi==1.15.0
Expand All @@ -33,7 +33,7 @@ distlib==0.3.3
docutils==0.16
entrypoints==0.3
execnet==1.9.0
filelock==3.3.2
filelock==3.4.0
flake8==4.0.1
flake8-blind-except==0.2.0
flake8-bugbear==21.9.2
Expand All @@ -48,10 +48,10 @@ fuzzywuzzy==0.18.0
gitdb==4.0.9
gitpython==3.1.18
gprof2dot==2021.2.21
graphviz==0.18.1
graphviz==0.18.2
greenlet==1.1.2
hepunits==2.1.2
identify==2.3.5
identify==2.3.6
idna==3.3
imagesize==1.3.0
immutables==0.16
Expand All @@ -63,7 +63,7 @@ ipython==7.16.1
ipython-genutils==0.2.0
ipywidgets==7.6.5
isort==5.10.1
jedi==0.18.0
jedi==0.18.1
jinja2==3.0.3
json5==0.9.6
jsonschema==3.2.0
Expand Down Expand Up @@ -98,7 +98,7 @@ nbdime==3.1.1
nbformat==5.1.3
nest-asyncio==1.5.1
nodeenv==1.6.0
notebook==6.4.5
notebook==6.4.6
packaging==21.2
pandocfilters==1.5.0
parso==0.8.2
Expand Down Expand Up @@ -148,7 +148,7 @@ send2trash==1.8.0
six==1.16.0
smmap==5.0.0
sniffio==1.2.0
snowballstemmer==2.1.0
snowballstemmer==2.2.0
soupsieve==2.3.1
sphinx==4.3.0
sphinx-autobuild==2021.3.14
Expand Down
14 changes: 7 additions & 7 deletions .constraints/py3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ babel==2.9.1
backcall==0.2.0
backports.entry-points-selectable==1.1.1
beautifulsoup4==4.10.0
black==21.10b0
black==21.11b0
bleach==4.1.0
certifi==2021.10.8
cffi==1.15.0
Expand All @@ -32,7 +32,7 @@ distlib==0.3.3
docutils==0.16
entrypoints==0.3
execnet==1.9.0
filelock==3.3.2
filelock==3.4.0
flake8==4.0.1
flake8-blind-except==0.2.0
flake8-bugbear==21.9.2
Expand All @@ -47,10 +47,10 @@ fuzzywuzzy==0.18.0
gitdb==4.0.9
gitpython==3.1.24
gprof2dot==2021.2.21
graphviz==0.18.1
graphviz==0.18.2
greenlet==1.1.2
hepunits==2.1.2
identify==2.3.5
identify==2.3.6
idna==3.3
imagesize==1.3.0
importlib-metadata==4.2.0
Expand All @@ -61,7 +61,7 @@ ipython==7.29.0
ipython-genutils==0.2.0
ipywidgets==7.6.5
isort==5.10.1
jedi==0.18.0
jedi==0.18.1
jinja2==3.0.3
json5==0.9.6
jsonschema==4.2.1
Expand Down Expand Up @@ -97,7 +97,7 @@ nbdime==3.1.1
nbformat==5.1.3
nest-asyncio==1.5.1
nodeenv==1.6.0
notebook==6.4.5
notebook==6.4.6
packaging==21.2
pandocfilters==1.5.0
parso==0.8.2
Expand Down Expand Up @@ -147,7 +147,7 @@ send2trash==1.8.0
six==1.16.0
smmap==5.0.0
sniffio==1.2.0
snowballstemmer==2.1.0
snowballstemmer==2.2.0
soupsieve==2.3.1
sphinx==4.3.0
sphinx-autobuild==2021.3.14
Expand Down
14 changes: 7 additions & 7 deletions .constraints/py3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ babel==2.9.1
backcall==0.2.0
backports.entry-points-selectable==1.1.1
beautifulsoup4==4.10.0
black==21.10b0
black==21.11b0
bleach==4.1.0
certifi==2021.10.8
cffi==1.15.0
Expand All @@ -31,7 +31,7 @@ distlib==0.3.3
docutils==0.16
entrypoints==0.3
execnet==1.9.0
filelock==3.3.2
filelock==3.4.0
flake8==4.0.1
flake8-blind-except==0.2.0
flake8-bugbear==21.9.2
Expand All @@ -47,10 +47,10 @@ fuzzywuzzy==0.18.0
gitdb==4.0.9
gitpython==3.1.24
gprof2dot==2021.2.21
graphviz==0.18.1
graphviz==0.18.2
greenlet==1.1.2
hepunits==2.1.2
identify==2.3.5
identify==2.3.6
idna==3.3
imagesize==1.3.0
importlib-metadata==4.8.2
Expand All @@ -61,7 +61,7 @@ ipython==7.29.0
ipython-genutils==0.2.0
ipywidgets==7.6.5
isort==5.10.1
jedi==0.18.0
jedi==0.18.1
jinja2==3.0.3
json5==0.9.6
jsonschema==4.2.1
Expand Down Expand Up @@ -97,7 +97,7 @@ nbdime==3.1.1
nbformat==5.1.3
nest-asyncio==1.5.1
nodeenv==1.6.0
notebook==6.4.5
notebook==6.4.6
packaging==21.2
pandocfilters==1.5.0
parso==0.8.2
Expand Down Expand Up @@ -147,7 +147,7 @@ send2trash==1.8.0
six==1.16.0
smmap==5.0.0
sniffio==1.2.0
snowballstemmer==2.1.0
snowballstemmer==2.2.0
soupsieve==2.3.1
sphinx==4.3.0
sphinx-autobuild==2021.3.14
Expand Down
14 changes: 7 additions & 7 deletions .constraints/py3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ babel==2.9.1
backcall==0.2.0
backports.entry-points-selectable==1.1.1
beautifulsoup4==4.10.0
black==21.10b0
black==21.11b0
bleach==4.1.0
certifi==2021.10.8
cffi==1.15.0
Expand All @@ -31,7 +31,7 @@ distlib==0.3.3
docutils==0.16
entrypoints==0.3
execnet==1.9.0
filelock==3.3.2
filelock==3.4.0
flake8==4.0.1
flake8-blind-except==0.2.0
flake8-bugbear==21.9.2
Expand All @@ -47,10 +47,10 @@ fuzzywuzzy==0.18.0
gitdb==4.0.9
gitpython==3.1.24
gprof2dot==2021.2.21
graphviz==0.18.1
graphviz==0.18.2
greenlet==1.1.2
hepunits==2.1.2
identify==2.3.5
identify==2.3.6
idna==3.3
imagesize==1.3.0
importlib-metadata==4.8.2
Expand All @@ -61,7 +61,7 @@ ipython==7.29.0
ipython-genutils==0.2.0
ipywidgets==7.6.5
isort==5.10.1
jedi==0.18.0
jedi==0.18.1
jinja2==3.0.3
json5==0.9.6
jsonschema==4.2.1
Expand Down Expand Up @@ -97,7 +97,7 @@ nbdime==3.1.1
nbformat==5.1.3
nest-asyncio==1.5.1
nodeenv==1.6.0
notebook==6.4.5
notebook==6.4.6
packaging==21.2
pandocfilters==1.5.0
parso==0.8.2
Expand Down Expand Up @@ -147,7 +147,7 @@ send2trash==1.8.0
six==1.16.0
smmap==5.0.0
sniffio==1.2.0
snowballstemmer==2.1.0
snowballstemmer==2.2.0
soupsieve==2.3.1
sphinx==4.3.0
sphinx-autobuild==2021.3.14
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/requirements-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ jobs:
token: ${{ secrets.PAT }}
# GITHUB_TOKEN will not rerun checks after pushing to a PR branch
- uses: actions/download-artifact@v2
- run: |
[[ -f .pre-commit-config.yaml ]] && mv -f .pre-commit-config.yaml ..
mv -f * ../.constraints/
working-directory: artifact
- run: ls -A
- name: Move artifacts to correct location
run: |
if [[ -d artifact ]]; then
cd artifact
ls -A
[[ -f .pre-commit-config.yaml ]] && mv -f .pre-commit-config.yaml ..
[[ "$(ls)" != "" ]] && mv -f * ../.constraints/
fi
- run: git status -s
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/requirements-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: git diff origin/main --exit-code -- .constraints setup.cfg
continue-on-error: true
- uses: ComPWA/update-pip-constraints@main
if: success()
if: failure()
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -42,7 +42,7 @@ jobs:
run: git diff origin/main --exit-code -- .pre-commit-config.yml
continue-on-error: true
- uses: ComPWA/update-pre-commit@main
if: success()
if: failure()

push:
name: Push changes
Expand All @@ -59,10 +59,14 @@ jobs:
token: ${{ secrets.PAT }}
# GITHUB_TOKEN will not rerun checks after pushing to a PR branch
- uses: actions/download-artifact@v2
- run: |
[[ -f .pre-commit-config.yaml ]] && mv -f .pre-commit-config.yaml ..
mv -f * ../.constraints/
working-directory: artifact
- name: Move artifacts to correct location
run: |
if [[ -d artifact ]]; then
cd artifact
ls -A
[[ -f .pre-commit-config.yaml ]] && mv -f .pre-commit-config.yaml ..
[[ "$(ls)" != "" ]] && mv -f * ../.constraints/
fi
- run: git status -s
- name: Commit and push changes
run: |
Expand Down
1 change: 0 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ vscode:
extensions:
- bungcip.better-toml
- christian-kohler.path-intellisense
- codestream.codestream
- davidanson.vscode-markdownlint
- eamodio.gitlens
- editorconfig.editorconfig
Expand Down
4 changes: 1 addition & 3 deletions .mypy.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
[mypy]
disallow_incomplete_defs = True
disallow_untyped_defs = True
files = **/*.py
show_error_codes = True
warn_unused_configs = True
files =
**/*.py,
**/*.pyi,

[mypy-tests.*]
check_untyped_defs = True
Expand Down
Loading