Skip to content

Commit

Permalink
Enable type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Oct 12, 2019
1 parent 313b9a5 commit bb180fe
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -69,9 +69,8 @@ check: install format ## Run formaters, linters, and static analysis
ifdef CI
git diff --exit-code
endif
poetry run mypy $(PACKAGES) --config-file=.mypy.ini
poetry run pylint $(PACKAGES) --rcfile=.pylint.ini
# TODO: Enable mypy after dropping legacy Python support
# poetry run mypy $(PACKAGES) --config-file=.mypy.ini
poetry run pydocstyle $(PACKAGES) $(CONFIG)

# TESTS #######################################################################
Expand Down
50 changes: 48 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pyproject.toml
Expand Up @@ -45,8 +45,7 @@ black = "=19.3b0"
isort = "=4.3.21"

# Linters
# TODO: Enable mypy after dropping legacy Python support
# mypy = "*"
mypy = "*"
pydocstyle = "^3"
pylint = "^2"

Expand Down
3 changes: 2 additions & 1 deletion verchew/script.py
Expand Up @@ -38,6 +38,7 @@
import warnings
from collections import OrderedDict
from subprocess import PIPE, STDOUT, Popen
from typing import Any, Dict


__version__ = '1.6.3'
Expand Down Expand Up @@ -179,7 +180,7 @@ def generate_config(root=None, filenames=None):


def parse_config(path):
data = OrderedDict()
data: Dict[str, Any] = OrderedDict()

log.info("Parsing config file: %s", path)
config = configparser.ConfigParser()
Expand Down

0 comments on commit bb180fe

Please sign in to comment.