Skip to content

Commit b13b1de

Browse files
branchvneersighted
authored andcommitted
ci: move mypy out of pre-commit
1 parent c76988b commit b13b1de

File tree

4 files changed

+107
-7
lines changed

4 files changed

+107
-7
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,8 @@ jobs:
7373
- name: Install pytest plugin
7474
run: poetry run pip install pytest-github-actions-annotate-failures
7575

76+
- name: Run mypy
77+
run: poetry run mypy
78+
7679
- name: Run pytest
7780
run: poetry run python -m pytest -p no:sugar -q tests/

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ repos:
7373
- id: flake8
7474
additional_dependencies: *flake8_deps
7575

76-
- repo: https://github.com/pre-commit/mirrors-mypy
77-
rev: v0.950
78-
hooks:
79-
- id: mypy
80-
pass_filenames: false
81-
8276
- repo: https://github.com/pre-commit/pre-commit
8377
rev: v2.19.0
8478
hooks:

poetry.lock

Lines changed: 103 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ poetry = {git = "https://github.com/python-poetry/poetry.git"}
2323
pre-commit = "^2.6"
2424
pytest = "^6.2.3"
2525
pytest-mock = "^3.6.1"
26+
mypy = ">=0.950"
2627

2728
[tool.poetry.plugins."poetry.application.plugin"]
2829
export = "poetry_plugin_bundle.plugin:BundleApplicationPlugin"

0 commit comments

Comments
 (0)