Skip to content

Commit d459fef

Browse files
committed
update pre-commit hooks
1 parent 28a5637 commit d459fef

4 files changed

Lines changed: 22 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,36 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
14+
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
1818
python-version: '3.13'
19-
19+
2020
- name: Install Ruff
2121
run: pip install ruff
22-
22+
2323
- name: Run Ruff linter
2424
run: ruff check src/ tests/
25-
25+
2626
- name: Run Ruff formatter check
2727
run: ruff format --check src/ tests/
2828

2929
type-check:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions/checkout@v4
33-
33+
3434
- name: Set up Python
3535
uses: actions/setup-python@v5
3636
with:
3737
python-version: '3.13'
38-
38+
3939
- name: Install dependencies
4040
run: |
4141
python -m pip install --upgrade pip
4242
pip install pyright
43-
43+
4444
- name: Run pyright
4545
run: pyright
4646

@@ -49,32 +49,32 @@ jobs:
4949
strategy:
5050
matrix:
5151
python-version: ['3.12', '3.13']
52-
52+
5353
steps:
5454
- uses: actions/checkout@v4
55-
55+
5656
- name: Set up Python ${{ matrix.python-version }}
5757
uses: actions/setup-python@v5
5858
with:
5959
python-version: ${{ matrix.python-version }}
60-
60+
6161
- name: Cache pip packages
6262
uses: actions/cache@v4
6363
with:
6464
path: ~/.cache/pip
6565
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
6666
restore-keys: |
6767
${{ runner.os }}-pip-
68-
68+
6969
- name: Install dependencies
7070
run: |
7171
python -m pip install --upgrade pip
7272
pip install -e ".[dev]"
73-
73+
7474
- name: Run unit tests
7575
run: |
7676
pytest tests/unit -v --cov=effects --cov-report=term
77-
77+
7878
- name: Run functional tests
7979
run: |
80-
pytest tests/functional -v
80+
pytest tests/functional -v

.pre-commit-config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.8.5
3+
rev: v0.12.8
44
hooks:
55
- id: ruff
66
args: [--fix, --exit-non-zero-on-fix]
77
- id: ruff-format
88

99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v5.0.0
10+
rev: v6.0.0
1111
hooks:
1212
- id: trailing-whitespace
1313
- id: end-of-file-fixer
@@ -21,6 +21,7 @@ repos:
2121
args: ['--fix=lf']
2222

2323
- repo: https://github.com/RobertCraigie/pyright-python
24-
rev: v1.1.348
24+
rev: v1.1.403
2525
hooks:
26-
- id: pyright
26+
- id: pyright
27+
additional_dependencies: ['pytest']

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def log_writer(effect: Log):
3333
def add_timestamp(effect: Log):
3434
timestamped = f"[{datetime.now().isoformat()}] {effect.message}"
3535
return fx.send(Log(timestamped), interpret_final=False)
36-
36+
3737
# Define an effectful computation
3838
def log_event(message: str):
3939
return fx.send(Log(message))
@@ -89,4 +89,4 @@ Contributions are welcome! Please feel free to open an issue to report bugs or s
8989

9090
## License
9191

92-
This project is licensed under the MIT License.
92+
This project is licensed under the MIT License.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ reportDuplicateImport = "warning"
114114

115115
# Effects library specific - these patterns are common
116116
reportIncompatibleMethodOverride = "none" # Effect handlers override differently
117-
reportIncompatibleVariableOverride = "none" # State management patterns
117+
reportIncompatibleVariableOverride = "none" # State management patterns

0 commit comments

Comments
 (0)