Skip to content

Commit 67cfc88

Browse files
authored
Add type checking. (#56)
1 parent 2c8b6f4 commit 67cfc88

File tree

5 files changed

+1168
-247
lines changed

5 files changed

+1168
-247
lines changed

.github/workflows/main.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ on:
1515

1616
jobs:
1717

18+
run-type-checking:
19+
20+
name: Run tests for type-checking
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: prefix-dev/[email protected]
26+
with:
27+
pixi-version: v0.23.0
28+
cache: true
29+
environments: typing
30+
- run: pixi run typing
31+
1832
run-tests:
1933

2034
name: Run tests for ${{ matrix.os }} on ${{ matrix.environment }}
@@ -30,7 +44,7 @@ jobs:
3044
- uses: actions/checkout@v4
3145
- uses: prefix-dev/[email protected]
3246
with:
33-
pixi-version: v0.20.1
47+
pixi-version: v0.23.0
3448
cache: true
3549
environments: ${{ matrix.environment }}
3650

.pre-commit-config.yaml

-12
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@ repos:
3939
rev: v2.2.6
4040
hooks:
4141
- id: codespell
42-
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: 'v1.10.0'
44-
hooks:
45-
- id: mypy
46-
additional_dependencies: [
47-
attrs>=21.3.0,
48-
click,
49-
pytask>=0.4.5,
50-
types-PyYAML,
51-
types-setuptools
52-
]
53-
pass_filenames: false
5442
- repo: meta
5543
hooks:
5644
- id: check-hooks-apply

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask-r) and
1111
for serialized arguments.
1212
- {pull}`51` reenables testing with different Python versions.
1313
- {pull}`54` updates tests for pytask v0.5.
14+
- {pull}`56` re-add type checking.
1415

1516
## 0.4.1 - 2024-04-20
1617

0 commit comments

Comments
 (0)