File tree Expand file tree Collapse file tree 4 files changed +79
-4
lines changed
Expand file tree Collapse file tree 4 files changed +79
-4
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "name" : " guykh/ims_envista" ,
3+ "image" : " mcr.microsoft.com/devcontainers/python:3.12" ,
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+ " charliermarsh.ruff" ,
18+ " github.vscode-pull-request-github" ,
19+ " ms-python.python" ,
20+ " ms-python.vscode-pylance" ,
21+ " ryanluker.vscode-coverage-gutters"
22+ ],
23+ "settings" : {
24+ "files.eol" : " \n " ,
25+ "editor.tabSize" : 4 ,
26+ "editor.formatOnPaste" : true ,
27+ "editor.formatOnSave" : true ,
28+ "editor.formatOnType" : false ,
29+ "files.trimTrailingWhitespace" : true ,
30+ "python.analysis.typeCheckingMode" : " basic" ,
31+ "python.analysis.autoImportCompletions" : true ,
32+ "python.defaultInterpreterPath" : " /usr/local/bin/python" ,
33+ "[python]" : {
34+ "editor.defaultFormatter" : " charliermarsh.ruff"
35+ }
36+ }
37+ }
38+ },
39+ "remoteUser" : " vscode" ,
40+ "features" : {}
41+ }
Original file line number Diff line number Diff line change @@ -15,15 +15,20 @@ jobs:
1515 contents : write
1616 steps :
1717 - name : " Checkout the repository"
18- uses : " actions/checkout@v4.2.0 "
18+ uses : " actions/checkout@v4"
1919
20+ - name : " Adjust version number"
21+ shell : " bash"
22+ run : |
23+ yq -i -o json '.version="${{ github.event.release.tag_name }}"' \
24+ "${{ github.workspace }}/custom_components/ims_envista/manifest.json"
2025 - name : " ZIP the integration directory"
2126 shell : " bash"
2227 run : |
23- cd "${{ github.workspace }}/custom_components/integration_blueprint "
24- zip integration_blueprint .zip -r ./
28+ cd "${{ github.workspace }}/custom_components/ims_envista "
29+ zip ims-envista .zip -r ./
2530
2631 - name : " Upload the ZIP file to the release"
2732 uses : " softprops/action-gh-release@v2.0.8"
2833 with :
29- files : ${{ github.workspace }}/custom_components/integration_blueprint/integration_blueprint .zip
34+ files : ${{ github.workspace }}/custom_components/ims_envista/ims-envista .zip
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ __pycache__
99# misc
1010.coverage
1111.vscode
12+ .idea
1213coverage.xml
1314.ruff_cache
1415
Original file line number Diff line number Diff line change 1+ # The contents of this file is based on https://github.com/home-assistant/core/blob/dev/pyproject.toml
2+
3+ target-version = " py312"
4+
5+ [lint ]
6+ select = [
7+ " ALL" ,
8+ ]
9+
10+ ignore = [
11+ " ANN101" , # Missing type annotation for `self` in method
12+ " ANN401" , # Dynamically typed expressions (typing.Any) are disallowed
13+ " D203" , # no-blank-line-before-class (incompatible with formatter)
14+ " D212" , # multi-line-summary-first-line (incompatible with formatter)
15+ " COM812" , # incompatible with formatter
16+ " ISC001" , # incompatible with formatter
17+ " ERA001" , # Commented out code,
18+ " PLR2004" # Make numbers as consts
19+ ]
20+
21+ [lint .flake8-pytest-style ]
22+ fixture-parentheses = false
23+
24+ [lint .pyupgrade ]
25+ keep-runtime-typing = true
26+
27+ [lint .mccabe ]
28+ max-complexity = 25
You can’t perform that action at this time.
0 commit comments