-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make better use of pre-commit (#2288)
- Loading branch information
Showing
608 changed files
with
11,570 additions
and
11,788 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ | |
## Additional info | ||
<!-- | ||
Add any additional info we must know about the measurements here. | ||
--> | ||
--> |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
When create a PR for new measurements to the library, please go the the `Preview` tab and select the `power-profile` template: | ||
If you are issuing a new PR for other purpose you can remove all this text. | ||
If you are issuing a new PR for other purpose you can remove all this text. | ||
|
||
* [Power profile](?expand=1&template=power_profile.md) | ||
* [Power profile](?expand=1&template=power_profile.md) |
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 |
---|---|---|
|
@@ -50,4 +50,4 @@ autolabeler: | |
- label: 'enhancement' | ||
branch: | ||
- '/feature\/.+/' | ||
- '/feat\/.+/' | ||
- '/feat\/.+/' |
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
{ | ||
"properties": { | ||
"bri": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 255 | ||
}, | ||
"watt": { | ||
"type": "number", | ||
"minimum": 0.01 | ||
} | ||
"properties": { | ||
"bri": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 255 | ||
}, | ||
"required": ["bri", "watt"] | ||
} | ||
"watt": { | ||
"type": "number", | ||
"minimum": 0.01 | ||
} | ||
}, | ||
"required": [ | ||
"bri", | ||
"watt" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,19 +1,23 @@ | ||
{ | ||
"properties": { | ||
"bri": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 255 | ||
}, | ||
"mired": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 670 | ||
}, | ||
"watt": { | ||
"type": "number", | ||
"minimum": 0.01 | ||
} | ||
"properties": { | ||
"bri": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 255 | ||
}, | ||
"required": ["bri", "mired", "watt"] | ||
} | ||
"mired": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 670 | ||
}, | ||
"watt": { | ||
"type": "number", | ||
"minimum": 0.01 | ||
} | ||
}, | ||
"required": [ | ||
"bri", | ||
"mired", | ||
"watt" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,24 +1,29 @@ | ||
{ | ||
"properties": { | ||
"bri": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 255 | ||
}, | ||
"hue": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 65535 | ||
}, | ||
"sat": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 255 | ||
}, | ||
"watt": { | ||
"type": "number", | ||
"minimum": 0.01 | ||
} | ||
"properties": { | ||
"bri": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 255 | ||
}, | ||
"required": ["bri", "hue", "sat", "watt"] | ||
} | ||
"hue": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 65535 | ||
}, | ||
"sat": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 255 | ||
}, | ||
"watt": { | ||
"type": "number", | ||
"minimum": 0.01 | ||
} | ||
}, | ||
"required": [ | ||
"bri", | ||
"hue", | ||
"sat", | ||
"watt" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
gitpython==3.1.43 | ||
pytablewriter==1.2.0 | ||
gitpython==3.1.43 |
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 |
---|---|---|
|
@@ -24,4 +24,4 @@ jobs: | |
env: | ||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | ||
with: | ||
post-pr-comment: false | ||
post-pr-comment: false |
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
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
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 |
---|---|---|
@@ -1,5 +1,34 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-builtin-literals | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
exclude: ^.*/?tsconfig\.json$ | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-symlinks | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: destroyed-symlinks | ||
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
- id: forbid-submodules | ||
- id: mixed-line-ending | ||
- id: pretty-format-json | ||
args: [ --autofix, --no-sort-keys, --no-ensure-ascii ] | ||
exclude: ^.*/?tsconfig\.json$ | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: 'v0.2.2' | ||
rev: v0.4.8 | ||
hooks: | ||
- id: ruff | ||
- id: ruff | ||
args: [ --fix ] | ||
- id: ruff-format |
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ files: [ | |
} | ||
} | ||
} | ||
] | ||
] |
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.