File tree Expand file tree Collapse file tree 3 files changed +11
-21
lines changed Expand file tree Collapse file tree 3 files changed +11
-21
lines changed Original file line number Diff line number Diff line change 77 branches : [main]
88
99jobs :
10- lint :
11- runs-on : ubuntu-latest
12- strategy :
13- matrix :
14- python-version : ["3.10", "3.11"]
15-
16- steps :
17- - uses : actions/checkout@v3
18- - name : Set up Python
19- uses : actions/setup-python@v4
20- with :
21- python-version : ${{ matrix.python-version }}
22- - name : Run lint
23- uses : pre-commit/action@v3.0.0
24-
2510 test :
2611 runs-on : ubuntu-latest
2712 strategy :
Original file line number Diff line number Diff line change 2727 mkdir -p test-sdist
2828 cd test-sdist
2929 python -m venv venv-sdist
30- venv-sdist/bin/python -m pip install ../dist/CausalPy *.tar.gz
30+ venv-sdist/bin/python -m pip install ../dist/causalpy *.tar.gz
3131 echo "Checking import and version number (on release)"
3232 venv-sdist/bin/python -c "import causalpy; assert causalpy.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else causalpy.__version__; print(causalpy.__version__)"
3333 cd ..
Original file line number Diff line number Diff line change 1+ ci :
2+ autofix_prs : false
3+
14# See https://pre-commit.com for more information
25# See https://pre-commit.com/hooks.html for more hooks
36repos :
47 - repo : https://github.com/pre-commit/pre-commit-hooks
5- rev : v4.4 .0
8+ rev : v4.6 .0
69 hooks :
10+ - id : debug-statements
711 - id : trailing-whitespace
812 exclude_types : [svg]
913 - id : end-of-file-fixer
1014 exclude_types : [svg]
1115 - id : check-yaml
1216 - id : check-added-large-files
13- args : [' --maxkb=1500' ]
14- - repo : https://github.com/charliermarsh /ruff-pre-commit
15- rev : v0.1.4
17+ args : [" --maxkb=1500" ]
18+ - repo : https://github.com/astral-sh /ruff-pre-commit
19+ rev : v0.4.2
1620 hooks :
1721 - id : ruff
22+ args : ["--fix", "--output-format=full"]
1823 - id : ruff-format
1924 - repo : https://github.com/nbQA-dev/nbQA
20- rev : 1.7.0
25+ rev : 1.8.5
2126 hooks :
2227 - id : nbqa-ruff
2328 - repo : https://github.com/econchick/interrogate
You can’t perform that action at this time.
0 commit comments