-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre-commit hook and vm_image_builder job
- Loading branch information
1 parent
ff37d7f
commit ae8f4b1
Showing
24 changed files
with
893 additions
and
601 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
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
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,59 @@ | ||
# HOWTO: https://pre-commit.com/#usage | ||
# pip3 install pre-commit | ||
# pre-commit install -t pre-commit -t pre-push | ||
|
||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.1.0 | ||
hooks: | ||
- id: pyupgrade | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.0-alpha.3 | ||
hooks: | ||
- id: prettier | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-ast | ||
#- id: check-builtin-literals | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-yaml | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- --ignore=F821,BLK100 | ||
# line break before binary operator - introduced by black (W503) | ||
# E203 whitespace before ':' - introduced by black (E203) | ||
# doctests are not well formatted, lines are too long and are not fixed by black, ignore them (W501) | ||
# W505 doc line too long - doctests results are too long end exceed doc line length, ignore them (W505) | ||
- --extend-ignore=W503,E203,E501,W505 | ||
# black setting is 88 | ||
- --max-line-length=88 | ||
- --max-doc-length=120 | ||
- --per-file-ignores=__init__.py:F401,E402 | ||
# - repo: https://github.com/PyCQA/isort | ||
# rev: 5.10.1 | ||
# hooks: | ||
# - id: isort | ||
# args: [--profile, black] | ||
#- repo: https://github.com/pre-commit/mirrors-mypy | ||
# rev: v0.982 | ||
# hooks: | ||
# - id: mypy | ||
# args: [--show-error-codes, --ignore-missing-imports] | ||
# additional_dependencies: | ||
# [types-pkg_resources, types-requests, types-python-dateutil] |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ Change Log | |
---------- | ||
|
||
Version 0.9.2 Sun Feb 6 2022 | ||
- first public release | ||
- first public release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ SOURCE=usbhid.c | |
|
||
all: $(TARGET) | ||
|
||
clean: | ||
clean: | ||
rm -f knxstack-usbhid-daemon | ||
|
||
$(TARGET) : $(SOURCE) | ||
|
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 |
---|---|---|
|
@@ -20,4 +20,3 @@ ThreeLevelStyle | |
--------------- | ||
|
||
.. autoclass:: knx_stack.address.ThreeLevelStyle | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,4 +62,3 @@ Description Factory | |
^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. autoclass:: knx_stack.datapointtypes.DPT_Value_Power | ||
|
Oops, something went wrong.