mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
da441bc697
Also updates CI pypy versions to be 3.9 and 3.10 which are the currently [supported versions](https://www.pypy.org/posts/2024/01/pypy-v7315-release.html). Otherwise latest cryptography doesn't ship with pypy3.8 wheels and is unable to build on windows. Also updates the `codecov-action` to v4 which fixed some intermittent uploading errors.
41 lines
1.1 KiB
YAML
41 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]
|
|
|
|
- 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
|