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 7
7
branches : [main]
8
8
9
9
jobs :
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/[email protected]
24
-
25
10
test :
26
11
runs-on : ubuntu-latest
27
12
strategy :
Original file line number Diff line number Diff line change 27
27
mkdir -p test-sdist
28
28
cd test-sdist
29
29
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
31
31
echo "Checking import and version number (on release)"
32
32
venv-sdist/bin/python -c "import causalpy; assert causalpy.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else causalpy.__version__; print(causalpy.__version__)"
33
33
cd ..
Original file line number Diff line number Diff line change
1
+ ci :
2
+ autofix_prs : false
3
+
1
4
# See https://pre-commit.com for more information
2
5
# See https://pre-commit.com/hooks.html for more hooks
3
6
repos :
4
7
- repo : https://github.com/pre-commit/pre-commit-hooks
5
- rev : v4.4 .0
8
+ rev : v4.6 .0
6
9
hooks :
10
+ - id : debug-statements
7
11
- id : trailing-whitespace
8
12
exclude_types : [svg]
9
13
- id : end-of-file-fixer
10
14
exclude_types : [svg]
11
15
- id : check-yaml
12
16
- 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
16
20
hooks :
17
21
- id : ruff
22
+ args : ["--fix", "--output-format=full"]
18
23
- id : ruff-format
19
24
- repo : https://github.com/nbQA-dev/nbQA
20
- rev : 1.7.0
25
+ rev : 1.8.5
21
26
hooks :
22
27
- id : nbqa-ruff
23
28
- repo : https://github.com/econchick/interrogate
You can’t perform that action at this time.
0 commit comments