mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
ed57563e8b
* Convert to use poetry and pyproject.toml, update README * add some resources for contributors * minor adjustments * ci: separate tests from linting, run using poetry * add pytest-mock to dev requirements * combine running tests and reporting to codecov * generate both xml and html coverage reports * add codecov to dev dependencies
40 lines
842 B
YAML
40 lines
842 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.4.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-docstring-first
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
- id: check-ast
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v1.25.2
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: ['--py36-plus']
|
|
|
|
- repo: https://github.com/python/black
|
|
rev: stable
|
|
hooks:
|
|
- id: black
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.3.0
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies: [flake8-docstrings]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-isort
|
|
rev: v4.3.21
|
|
hooks:
|
|
- id: isort
|
|
additional_dependencies: [toml]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v0.740
|
|
hooks:
|
|
- id: mypy
|
|
# args: [--no-strict-optional, --ignore-missing-imports]
|