-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from tomleglaunec/main
Fix RFC2217 blocking calls
- Loading branch information
Showing
19 changed files
with
502 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ jobs: | |
- name: HACS validation | ||
uses: "hacs/action@main" | ||
with: | ||
category: "integration" | ||
category: "integration" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Adapted from https://github.com/home-assistant/core/blob/dev/.pre-commit-config.yaml | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.3 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --select, I] | ||
- id: ruff-format | ||
files: ^((custom_components)/.+)?[^/]+\.(py|pyi)$ | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.3.0 | ||
hooks: | ||
- id: codespell | ||
args: | ||
- --ignore-words-list=astroid,checkin,currenty,hass,iif,incomfort,lookin,nam,NotIn | ||
- --skip="./.*,*.csv,*.json,*.ambr,*.md" | ||
- --quiet-level=2 | ||
exclude_types: [csv, json, html, markdown] | ||
exclude: ^serialserver/|res/ | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.3 | ||
hooks: | ||
- id: prettier | ||
- repo: local | ||
hooks: | ||
# Run mypy through our wrapper script in order to get the possible | ||
# pyenv and/or virtualenv activated; it may not have been e.g. if | ||
# committing from a GUI tool that was not launched from an activated | ||
# shell. | ||
- id: mypy | ||
name: mypy | ||
entry: mypy | ||
language: python | ||
types_or: [python, pyi] | ||
args: | ||
- --ignore-missing-imports | ||
require_serial: true | ||
files: ^(custom_components)/.+\.(py|pyi)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.