Skip to content

Commit e366ba5

Browse files
committed
Merge branch 'main' into inv_propensity_model
Signed-off-by: Nathaniel <[email protected]>
2 parents 3fb81fc + c7b8c26 commit e366ba5

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@ on:
77
branches: [main]
88

99
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-
2510
test:
2611
runs-on: ubuntu-latest
2712
strategy:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
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 ..

.pre-commit-config.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
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
36
repos:
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

0 commit comments

Comments
 (0)