Skip to content

Commit c41c30f

Browse files
committed
ci: Add mypy checks for runtime & syntax
1 parent 12b32a7 commit c41c30f

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

.github/workflows/fluent.runtime.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
run: |
4747
./runtests.py
4848
lint:
49-
name: flake8
5049
runs-on: ubuntu-latest
5150
steps:
5251
- uses: actions/checkout@v3
@@ -58,7 +57,12 @@ jobs:
5857
python -m pip install wheel
5958
python -m pip install --upgrade pip
6059
python -m pip install flake8==6
61-
- name: lint
60+
python -m pip install mypy==1
61+
- name: flake8
6262
working-directory: ./fluent.runtime
6363
run: |
6464
python -m flake8
65+
- name: mypy
66+
working-directory: ./fluent.runtime
67+
run: |
68+
python -m mypy fluent/

.github/workflows/fluent.syntax.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ jobs:
3939
working-directory: ./fluent.syntax
4040
run: |
4141
./runtests.py
42-
syntax:
43-
name: flake8
42+
lint:
4443
runs-on: ubuntu-latest
4544
steps:
4645
- uses: actions/checkout@v3
@@ -51,7 +50,12 @@ jobs:
5150
run: |
5251
python -m pip install --upgrade pip
5352
python -m pip install flake8==6
54-
- name: lint
53+
python -m pip install mypy==1
54+
- name: flake8
5555
working-directory: ./fluent.syntax
5656
run: |
5757
python -m flake8
58+
- name: mypy
59+
working-directory: ./fluent.syntax
60+
run: |
61+
python -m mypy fluent/

fluent.runtime/setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ max-line-length=120
1212
line_length=120
1313
skip_glob=.tox
1414
not_skip=__init__.py
15+
16+
[mypy]
17+
strict = True

fluent.syntax/setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ max-line-length=120
1212
line_length=120
1313
skip_glob=.tox
1414
not_skip=__init__.py
15+
16+
[mypy]
17+
strict = True

0 commit comments

Comments
 (0)