Skip to content

Commit

Permalink
test: add mypy testing to CI (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Sep 2, 2023
1 parent f859484 commit 1fee340
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ jobs:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- run: poetry install
- run: poetry run mypy -p flake8_sqlalchemy
- run: poetry run pytest
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.7.0
hooks:
- id: black
Expand Down
2 changes: 1 addition & 1 deletion flake8_sqlalchemy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class Visitor(ast.NodeVisitor):
checkers: Dict[str, List] = {
checkers: Dict[str, List[Any]] = {
"Call": [
ColumnCommentChecker(),
],
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ profile = "black"
[tool.pytest.ini_options]
addopts = "--cov=flake8_sqlalchemy --cov-report=term-missing"

[tool.mypy]
show_error_codes = true
strict = true
warn_unused_configs = true
warn_unused_ignores = true
warn_unreachable = true

[tool.vulture]
paths = ["flake8_sqlalchemy"]

Expand Down

0 comments on commit 1fee340

Please sign in to comment.