Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit bfbc5ba

Browse files
authored
Enable pylint and mypy (#92)
1 parent 7b6459f commit bfbc5ba

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

.pre-commit-config.yaml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ repos:
55
hooks:
66
- id: doc8
77
- repo: https://github.com/python/black
8-
rev: 20.8b1
8+
rev: 21.6b0
99
hooks:
1010
- id: black
1111
language_version: python3
1212
- repo: https://github.com/pre-commit/pre-commit-hooks.git
13-
rev: v3.4.0
13+
rev: v4.0.1
1414
hooks:
1515
- id: end-of-file-fixer
1616
- id: trailing-whitespace
@@ -20,20 +20,20 @@ repos:
2020
- id: check-merge-conflict
2121
- id: debug-statements
2222
- repo: https://gitlab.com/pycqa/flake8.git
23-
rev: 3.8.4
23+
rev: 3.9.2
2424
hooks:
2525
- id: flake8
2626
additional_dependencies:
2727
- flake8-black
2828
- repo: https://github.com/adrienverge/yamllint.git
29-
rev: v1.25.0
29+
rev: v1.26.1
3030
hooks:
3131
- id: yamllint
3232
files: \.(yaml|yml)$
3333
types: [file, yaml]
3434
entry: yamllint --strict
3535
- repo: https://github.com/codespell-project/codespell.git
36-
rev: v2.0.0
36+
rev: v2.1.0
3737
hooks:
3838
- id: codespell
3939
name: codespell
@@ -44,3 +44,22 @@ repos:
4444
args: []
4545
require_serial: false
4646
additional_dependencies: []
47+
- repo: https://github.com/pre-commit/mirrors-mypy
48+
rev: v0.910
49+
hooks:
50+
- id: mypy
51+
# empty args needed in order to match mypy cli behavior
52+
args: []
53+
entry: mypy pytest_molecule/
54+
pass_filenames: false
55+
additional_dependencies:
56+
- molecule
57+
- pytest
58+
- selinux
59+
- types-PyYAML
60+
- types-setuptools
61+
- repo: https://github.com/pre-commit/mirrors-pylint
62+
rev: v3.0.0a3
63+
hooks:
64+
- id: pylint
65+
additional_dependencies: []

mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 3rd party ignores, to remove once they add hints
2+
[mypy-selinux]
3+
ignore_missing_imports = True

0 commit comments

Comments
 (0)