File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 permissions : write-all
1111 steps :
12+
1213 - name : Checkout repository
1314 uses : actions/checkout@v4
1415 with :
1516 ref : main
17+
1618 - name : Set up Python
1719 uses : actions/setup-python@v5
1820 with :
1921 python-version : " 3.10"
2022
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install --upgrade pip
26+ pip install 'causalpy[docs]'
27+ sudo apt-get update && sudo apt-get install -y graphviz
28+
29+ - name : Install pylint explicitly
30+ run : python -m pip install pylint
31+
32+ - name : Verify pylint and pyreverse
33+ run : |
34+ python -m pip show pylint
35+ which pyreverse
36+ pyreverse --version
37+
2138 - name : Configure Git Identity
2239 run : |
2340 git config user.name 'github-actions[bot]'
2441 git config user.email 'github-actions[bot]@users.noreply.github.com'
42+
2543 - name : Update the UML Diagrams
2644 run : |
27- sudo apt-get update && sudo apt-get install -y graphviz
2845 make uml
46+
2947 - name : Detect UML changes
3048 id : changes
3149 run : |
32- git add docs/source/uml /*.png
50+ git add docs/source/_static /*.png
3351 if git diff --staged --exit-code; then
3452 echo "No changes to commit"
3553 echo "changes_exist=false" >> $GITHUB_OUTPUT
3654 else
3755 echo "changes_exist=true" >> $GITHUB_OUTPUT
3856 fi
57+
3958 - name : Create PR for changes
4059 if : steps.changes.outputs.changes_exist == 'true'
4160 run : |
Original file line number Diff line number Diff line change 55# See https://pre-commit.com/hooks.html for more hooks
66repos :
77 - repo : https://github.com/lucianopaz/head_of_apache
8- rev : " 0.1.0 "
8+ rev : " 0.1.1 "
99 hooks :
1010 - id : head_of_apache
1111 args :
2525 exclude : &exclude_pattern 'iv_weak_instruments.ipynb'
2626 args : ["--maxkb=1500"]
2727 - repo : https://github.com/astral-sh/ruff-pre-commit
28- rev : v0.9.9
28+ rev : v0.11.5
2929 hooks :
3030 # Run the linter
3131 - id : ruff
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ docs = [
5656 " linkify-it-py" ,
5757 " myst-nb<=1.0.0" ,
5858 " pathlib" ,
59+ " pylint" ,
5960 " sphinx" ,
6061 " sphinx-autodoc-typehints" ,
6162 " sphinx_autodoc_defaultargs" ,
You can’t perform that action at this time.
0 commit comments