Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0af5811

Browse files
author
Your Name
committed
Updated pre-commit
1 parent 62a33a5 commit 0af5811

File tree

15 files changed

+168
-196
lines changed

15 files changed

+168
-196
lines changed

.devcontainer.json

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
11
{
2-
"name": "kidde-homesafe",
3-
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
4-
"postCreateCommand": "scripts/setup",
5-
"forwardPorts": [
6-
8123
7-
],
8-
"portsAttributes": {
9-
"8123": {
10-
"label": "Home Assistant",
11-
"onAutoForward": "notify"
12-
}
13-
},
14-
"customizations": {
15-
"vscode": {
16-
"extensions": [
17-
"ms-python.python",
18-
"github.vscode-pull-request-github",
19-
"ryanluker.vscode-coverage-gutters",
20-
"ms-python.vscode-pylance"
21-
],
22-
"settings": {
23-
"files.eol": "\n",
24-
"editor.tabSize": 4,
25-
"python.pythonPath": "/usr/bin/python3",
26-
"python.analysis.autoSearchPaths": false,
27-
"python.linting.pylintEnabled": true,
28-
"python.linting.enabled": true,
29-
"python.formatting.provider": "black",
30-
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
31-
"editor.formatOnPaste": false,
32-
"editor.formatOnSave": true,
33-
"editor.formatOnType": true,
34-
"files.trimTrailingWhitespace": true
35-
}
36-
}
37-
},
38-
"remoteUser": "vscode",
39-
"features": {
40-
"ghcr.io/devcontainers/features/rust:1": {}
2+
"name": "kidde-homesafe",
3+
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
4+
"postCreateCommand": "scripts/setup",
5+
"forwardPorts": [8123],
6+
"portsAttributes": {
7+
"8123": {
8+
"label": "Home Assistant",
9+
"onAutoForward": "notify"
4110
}
11+
},
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"ms-python.python",
16+
"github.vscode-pull-request-github",
17+
"ryanluker.vscode-coverage-gutters",
18+
"ms-python.vscode-pylance"
19+
],
20+
"settings": {
21+
"files.eol": "\n",
22+
"editor.tabSize": 4,
23+
"python.pythonPath": "/usr/bin/python3",
24+
"python.analysis.autoSearchPaths": false,
25+
"python.linting.pylintEnabled": true,
26+
"python.linting.enabled": true,
27+
"python.formatting.provider": "black",
28+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
29+
"editor.formatOnPaste": false,
30+
"editor.formatOnSave": true,
31+
"editor.formatOnType": true,
32+
"files.trimTrailingWhitespace": true
33+
}
34+
}
35+
},
36+
"remoteUser": "vscode",
37+
"features": {
38+
"ghcr.io/devcontainers/features/rust:1": {}
39+
}
4240
}

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 88
3+
extend-ignore = E203, E704

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* text=auto eol=lf
1+
* text=auto eol=lf

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,53 @@ name: "Bug report"
33
description: "Report a bug with the integration"
44
labels: "Bug"
55
body:
6-
- type: markdown
7-
attributes:
8-
value: Before you open a new issue, search through the existing issues to see if others have had the same problem.
9-
- type: textarea
10-
attributes:
11-
label: "System Health details"
12-
description: "Paste the data from the System Health card in Home Assistant (https://www.home-assistant.io/more-info/system-health#github-issues)"
13-
validations:
14-
required: true
15-
- type: checkboxes
16-
attributes:
17-
label: Checklist
18-
options:
19-
- label: I have enabled debug logging for my installation.
20-
required: true
21-
- label: I have filled out the issue template to the best of my ability.
22-
required: true
23-
- label: This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
24-
required: true
25-
- label: This issue is not a duplicate issue of any [previous issues](https://github.com/865charlesw/kidde-homesafe/issues?q=is%3Aissue+label%3A%22Bug%22+)..
26-
required: true
27-
- type: textarea
28-
attributes:
29-
label: "Describe the issue"
30-
description: "A clear and concise description of what the issue is."
31-
validations:
32-
required: true
33-
- type: textarea
34-
attributes:
35-
label: Reproduction steps
36-
description: "Without steps to reproduce, it will be hard to fix. It is very important that you fill out this part. Issues without it will be closed."
37-
value: |
38-
1.
39-
2.
40-
3.
41-
...
42-
validations:
43-
required: true
44-
- type: textarea
45-
attributes:
46-
label: "Debug logs"
47-
description: "To enable debug logs check this https://www.home-assistant.io/integrations/logger/, this **needs** to include _everything_ from startup of Home Assistant to the point where you encounter the issue."
48-
render: text
49-
validations:
50-
required: true
6+
- type: markdown
7+
attributes:
8+
value: Before you open a new issue, search through the existing issues to see if others have had the same problem.
9+
- type: textarea
10+
attributes:
11+
label: "System Health details"
12+
description: "Paste the data from the System Health card in Home Assistant (https://www.home-assistant.io/more-info/system-health#github-issues)"
13+
validations:
14+
required: true
15+
- type: checkboxes
16+
attributes:
17+
label: Checklist
18+
options:
19+
- label: I have enabled debug logging for my installation.
20+
required: true
21+
- label: I have filled out the issue template to the best of my ability.
22+
required: true
23+
- label: This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
24+
required: true
25+
- label: This issue is not a duplicate issue of any [previous issues](https://github.com/865charlesw/kidde-homesafe/issues?q=is%3Aissue+label%3A%22Bug%22+)..
26+
required: true
27+
- type: textarea
28+
attributes:
29+
label: "Describe the issue"
30+
description: "A clear and concise description of what the issue is."
31+
validations:
32+
required: true
33+
- type: textarea
34+
attributes:
35+
label: Reproduction steps
36+
description: "Without steps to reproduce, it will be hard to fix. It is very important that you fill out this part. Issues without it will be closed."
37+
value: |
38+
1.
39+
2.
40+
3.
41+
...
42+
validations:
43+
required: true
44+
- type: textarea
45+
attributes:
46+
label: "Debug logs"
47+
description: "To enable debug logs check this https://www.home-assistant.io/integrations/logger/, this **needs** to include _everything_ from startup of Home Assistant to the point where you encounter the issue."
48+
render: text
49+
validations:
50+
required: true
5151

52-
- type: textarea
53-
attributes:
54-
label: "Diagnostics dump"
55-
description: "Drag the diagnostics dump file here. (see https://www.home-assistant.io/integrations/diagnostics/ for info)"
52+
- type: textarea
53+
attributes:
54+
label: "Diagnostics dump"
55+
description: "Drag the diagnostics dump file here. (see https://www.home-assistant.io/integrations/diagnostics/ for info)"

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
blank_issues_enabled: false
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,45 @@ name: "Feature request"
33
description: "Suggest an idea for this project"
44
labels: "Feature+Request"
55
body:
6-
- type: markdown
7-
attributes:
8-
value: Before you open a new feature request, search through the existing feature requests to see if others have had the same idea.
9-
- type: checkboxes
10-
attributes:
11-
label: Checklist
12-
options:
13-
- label: I have filled out the template to the best of my ability.
14-
required: true
15-
- label: This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
16-
required: true
17-
- label: This issue is not a duplicate feature request of [previous feature requests](https://github.com/865charlesw/kidde-homesafe/issues?q=is%3Aissue+label%3A%22Feature+Request%22+).
18-
required: true
6+
- type: markdown
7+
attributes:
8+
value: Before you open a new feature request, search through the existing feature requests to see if others have had the same idea.
9+
- type: checkboxes
10+
attributes:
11+
label: Checklist
12+
options:
13+
- label: I have filled out the template to the best of my ability.
14+
required: true
15+
- label: This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
16+
required: true
17+
- label: This issue is not a duplicate feature request of [previous feature requests](https://github.com/865charlesw/kidde-homesafe/issues?q=is%3Aissue+label%3A%22Feature+Request%22+).
18+
required: true
1919

20-
- type: textarea
21-
attributes:
22-
label: "Is your feature request related to a problem? Please describe."
23-
description: "A clear and concise description of what the problem is."
24-
placeholder: "I'm always frustrated when [...]"
25-
validations:
26-
required: true
20+
- type: textarea
21+
attributes:
22+
label: "Is your feature request related to a problem? Please describe."
23+
description: "A clear and concise description of what the problem is."
24+
placeholder: "I'm always frustrated when [...]"
25+
validations:
26+
required: true
2727

28-
- type: textarea
29-
attributes:
30-
label: "Describe the solution you'd like"
31-
description: "A clear and concise description of what you want to happen."
32-
validations:
33-
required: true
28+
- type: textarea
29+
attributes:
30+
label: "Describe the solution you'd like"
31+
description: "A clear and concise description of what you want to happen."
32+
validations:
33+
required: true
3434

35-
- type: textarea
36-
attributes:
37-
label: "Describe alternatives you've considered"
38-
description: "A clear and concise description of any alternative solutions or features you've considered."
39-
validations:
40-
required: true
35+
- type: textarea
36+
attributes:
37+
label: "Describe alternatives you've considered"
38+
description: "A clear and concise description of any alternative solutions or features you've considered."
39+
validations:
40+
required: true
4141

42-
- type: textarea
43-
attributes:
44-
label: "Additional context"
45-
description: "Add any other context or screenshots about the feature request here."
46-
validations:
47-
required: true
42+
- type: textarea
43+
attributes:
44+
label: "Additional context"
45+
description: "Add any other context or screenshots about the feature request here."
46+
validations:
47+
required: true

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ updates:
1212
interval: "weekly"
1313
ignore:
1414
# Dependabot should not update Home Assistant as that should match the homeassistant key in hacs.json
15-
- dependency-name: "homeassistant"
15+
- dependency-name: "homeassistant"

.github/workflows/lint.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/validate.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Validate"
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "0 0 * * *"
6+
- cron: "0 0 * * *"
77
push:
88
branches:
99
- "main"
@@ -16,22 +16,22 @@ jobs:
1616
name: "Hassfest Validation"
1717
runs-on: "ubuntu-latest"
1818
steps:
19-
- name: "Checkout the repository"
20-
uses: "actions/checkout@v4.1.0"
19+
- name: "Checkout the repository"
20+
uses: "actions/checkout@v4.1.0"
2121

22-
- name: "Run hassfest validation"
23-
uses: "home-assistant/actions/hassfest@master"
22+
- name: "Run hassfest validation"
23+
uses: "home-assistant/actions/hassfest@master"
2424

2525
hacs: # https://github.com/hacs/action
2626
name: "HACS Validation"
2727
runs-on: "ubuntu-latest"
2828
steps:
29-
- name: "Checkout the repository"
30-
uses: "actions/checkout@v4.1.0"
29+
- name: "Checkout the repository"
30+
uses: "actions/checkout@v4.1.0"
3131

32-
- name: "Run HACS validation"
33-
uses: "hacs/action@main"
34-
with:
35-
category: "integration"
36-
# Remove this 'ignore' key when you have added brand images for your integration to https://github.com/home-assistant/brands
37-
ignore: "brands"
32+
- name: "Run HACS validation"
33+
uses: "hacs/action@main"
34+
with:
35+
category: "integration"
36+
# Remove this 'ignore' key when you have added brand images for your integration to https://github.com/home-assistant/brands
37+
ignore: "brands"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ coverage.xml
1414

1515
# Home Assistant configuration
1616
config/*
17-
!config/configuration.yaml
17+
!config/configuration.yaml

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ fixture-parentheses = false
4545
keep-runtime-typing = true
4646

4747
[mccabe]
48-
max-complexity = 25
48+
max-complexity = 25

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Report a bug by [opening a new issue](../../issues/new/choose); it's that easy!
4040
- What actually happens
4141
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
4242

43-
People *love* thorough bug reports. I'm not even kidding.
43+
People _love_ thorough bug reports. I'm not even kidding.
4444

4545
## Use a Consistent Coding Style
4646

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ _Integration to integrate with [Kidde HomeSafe][kidde_homesafe]._
2424

2525
If you want to contribute to this please read the [Contribution guidelines](CONTRIBUTING.md)
2626

27-
***
27+
---
2828

2929
[kidde_homesafe]: https://github.com/865charlesw/kidde-homesafe
3030
[commits-shield]: https://img.shields.io/github/commit-activity/y/865charlesw/kidde-homesafe.svg?style=for-the-badge

0 commit comments

Comments
 (0)