Skip to content

Commit

Permalink
Merge pull request #47 from tk0miya/do_mypy_in_ci
Browse files Browse the repository at this point in the history
Do mypy check in CI
  • Loading branch information
tk0miya committed Mar 15, 2021
2 parents ca7bed9 + 5ca6b81 commit da0d1a2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
env: [flake8]
env: [flake8, mypy]

steps:
- name: Checkout code
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ release = check -r -s egg_info -Db ''
;show-source=true
max-line-length=95

[mypy]
ignore_missing_imports = True
strict_optional = False
2 changes: 1 addition & 1 deletion sphinx_intl/pycompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ def execfile_(filepath: str, _globals: Any, open: Callable = open) -> None:
warnings.warn('Support for evaluating Python 2 syntax is deprecated '
'and will be removed in sphinx-intl 4.0. '
'Convert %s to Python 3 syntax.',
filepath)
source=filepath)
exec(code, _globals)
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[tox]
envlist =
py{35,36,37,38,39,310-dev},
flake8
flake8,
mypy

[gh-actions]
python =
Expand All @@ -25,6 +26,11 @@ usedevelop=True
deps=flake8
commands=flake8 sphinx_intl

[testenv:mypy]
usedevelop=True
deps=mypy
commands=mypy sphinx_intl

[testenv:sdist]
usedevelop=True
deps=
Expand Down

0 comments on commit da0d1a2

Please sign in to comment.