mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
9473d97ad2
Introduce common module interfaces across smart and iot devices and provide better typing implementation for getting modules to support this.
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.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/astral-sh/ruff-pre-commit
|
|
rev: v0.3.7
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.9.0
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies: [types-click]
|
|
exclude: |
|
|
(?x)^(
|
|
kasa/modulemapping\.py|
|
|
)$
|
|
|
|
|
|
- repo: https://github.com/PyCQA/doc8
|
|
rev: 'v1.1.1'
|
|
hooks:
|
|
- id: doc8
|
|
additional_dependencies: [tomli]
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: generate-supported
|
|
name: Generate supported devices
|
|
description: This hook generates the supported device sections of README.md and SUPPORTED.md
|
|
entry: devtools/generate_supported.py
|
|
language: system # Required or pre-commit creates a new venv
|
|
verbose: true # Show output on success
|
|
types: [json]
|
|
pass_filenames: false # passing filenames causes the hook to run in batches against all-files
|