File tree Expand file tree Collapse file tree 4 files changed +27
-7
lines changed Expand file tree Collapse file tree 4 files changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -46,19 +46,28 @@ jobs:
46
46
run : |
47
47
./runtests.py
48
48
lint :
49
- name : flake8
50
49
runs-on : ubuntu-latest
51
50
steps :
52
51
- uses : actions/checkout@v3
53
52
- uses : actions/setup-python@v4
54
53
with :
55
54
python-version : 3.9
56
55
- name : Install dependencies
56
+ working-directory : ./fluent.runtime
57
57
run : |
58
58
python -m pip install wheel
59
59
python -m pip install --upgrade pip
60
- python -m pip install flake8==6
61
- - name : lint
60
+ python -m pip install .
61
+ python -m pip install flake8==6 mypy==1 types-babel types-pytz
62
+ - name : Install latest fluent.syntax
63
+ working-directory : ./fluent.syntax
64
+ run : |
65
+ python -m pip install .
66
+ - name : flake8
62
67
working-directory : ./fluent.runtime
63
68
run : |
64
69
python -m flake8
70
+ - name : mypy
71
+ working-directory : ./fluent.runtime
72
+ run : |
73
+ python -m mypy fluent/
Original file line number Diff line number Diff line change @@ -39,19 +39,24 @@ jobs:
39
39
working-directory : ./fluent.syntax
40
40
run : |
41
41
./runtests.py
42
- syntax :
43
- name : flake8
42
+ lint :
44
43
runs-on : ubuntu-latest
45
44
steps :
46
45
- uses : actions/checkout@v3
47
46
- uses : actions/setup-python@v4
48
47
with :
49
48
python-version : 3.9
50
49
- name : Install dependencies
50
+ working-directory : ./fluent.syntax
51
51
run : |
52
52
python -m pip install --upgrade pip
53
- python -m pip install flake8==6
54
- - name : lint
53
+ python -m pip install .
54
+ python -m pip install flake8==6 mypy==1
55
+ - name : flake8
55
56
working-directory : ./fluent.syntax
56
57
run : |
57
58
python -m flake8
59
+ - name : mypy
60
+ working-directory : ./fluent.syntax
61
+ run : |
62
+ python -m mypy fluent/
Original file line number Diff line number Diff line change @@ -12,3 +12,6 @@ max-line-length=120
12
12
line_length =120
13
13
skip_glob =.tox
14
14
not_skip =__init__.py
15
+
16
+ [mypy]
17
+ strict = True
Original file line number Diff line number Diff line change @@ -12,3 +12,6 @@ max-line-length=120
12
12
line_length =120
13
13
skip_glob =.tox
14
14
not_skip =__init__.py
15
+
16
+ [mypy]
17
+ strict = True
You can’t perform that action at this time.
0 commit comments