Skip to content

Commit

Permalink
move mypy deps into the setup.cfg file
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Jan 2, 2024
1 parent 2c56c8b commit 99f304f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
15 changes: 15 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ test =
Sphinx
pytest-subtests

mypy =
mypy>=0.902
mypy-zope
typing-extensions
; Libraries which include type annotations:
hypothesis
pytest>=6.0.0
sphinx>=3.4.0
twisted @ git+https://github.com/twisted/twisted.git
types-requests
; FIXME: https://github.com/twisted/pydoctor/issues/504
; This is pinned for now as newer versions are breaking our static checks.
types-docutils==0.17.5
types-toml

[options.entry_points]
console_scripts =
pydoctor = pydoctor.driver:main
Expand Down
19 changes: 4 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ commands =
[testenv:pyflakes]
description = Run pyflakes over the pydoctor code

deps: pyflakes
deps =
pyflakes

commands =
; Custom pyflakes run to exlcude some files. The demo packages are trigerring some unused imports warnings. But pydoctor uses those imports to resolve links. So we skip pyflakes for the demo sites. But not the test files.
Expand Down Expand Up @@ -182,20 +183,8 @@ commands =
[testenv:mypy]
description = run mypy (static type checker)

deps =
mypy>=0.902
mypy-zope
typing-extensions
; Libraries which include type annotations:
hypothesis
pytest>=6.0.0
sphinx>=3.4.0
git+https://github.com/twisted/twisted.git
types-requests
# FIXME: https://github.com/twisted/pydoctor/issues/504
# This is pinned for now as newer versions are breaking our static checks.
types-docutils==0.17.5
types-toml
extras =
mypy

commands =
mypy \
Expand Down

0 comments on commit 99f304f

Please sign in to comment.