Skip to content

Commit

Permalink
Fix code after blueprint merge, pt.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Sep 23, 2023
1 parent ba61d3f commit 7d879dd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/py-dead-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements-test.txt ]; then
bin/install_requirements requirements-test.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
script/install_requirements requirements-test.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
elif [ -f requirements-dev.txt ]; then
bin/install_requirements requirements-dev.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
script/install_requirements requirements-dev.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
elif [ -f requirements.txt ]; then
bin/install_requirements requirements.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
script/install_requirements requirements.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
fi
pip install flake8-eradicate
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/py-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
python -m pip install --upgrade pip
# Prefer requirements-dev.txt
if [ -f requirements-dev.txt ]; then
bin/install_requirements requirements-dev.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
script/install_requirements requirements-dev.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
elif [ -f requirements-test.txt ]; then
bin/install_requirements requirements-test.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
script/install_requirements requirements-test.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
elif [ -f requirements.txt ]; then
bin/install_requirements requirements.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
script/install_requirements requirements.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
fi
if [ -d custom_components ]; then
Expand Down Expand Up @@ -92,11 +92,11 @@ jobs:
python -m pip install --upgrade pip
# Prefer requirements-test.txt
if [ -f requirements-test.txt ]; then
bin/install_requirements requirements-test.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
script/install_requirements requirements-test.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
elif [ -f requirements-dev.txt ]; then
bin/install_requirements requirements-dev.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
script/install_requirements requirements-dev.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
elif [ -f requirements.txt ]; then
bin/install_requirements requirements.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
script/install_requirements requirements.txt "${{ secrets.ADMIN_GITHUB_TOKEN }}"
fi
pip install pytest-xdist
Expand All @@ -108,7 +108,7 @@ jobs:
if: matrix.python-version != '3.9'
run: |
pytest --basetemp=$RUNNER_TEMP --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar
./bin/check_dirty
./script/check_dirty
- name: "Install Coveralls"
if: matrix.python-version == '3.9'
Expand All @@ -119,7 +119,7 @@ jobs:
if: matrix.python-version == '3.9'
run: |
pytest --basetemp=$RUNNER_TEMP --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar --cov --cov-report=
./bin/check_dirty
./script/check_dirty
- name: "Send coverage to Coveralls"
if: matrix.python-version == '3.9'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ jobs:
- name: "Update release notes"
if: env.release_version != '' && success()
run: python3 ./bin/gen_releasenotes --token ${{ secrets.GITHUB_TOKEN }} --repo ${{ github.repository }} --release ${{ env.release_version }}
run: python3 ./script/gen_releasenotes --token ${{ secrets.GITHUB_TOKEN }} --repo ${{ github.repository }} --release ${{ env.release_version }}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Contributing to this project should be as easy and transparent as possible, whet

## IMPORTANT! Install development environment first

When making changes in code, please use the existing development environment — this will save you from many errors and help create more convenient code to support. To install the environment, run the `./bin/setup` script.
When making changes in code, please use the existing development environment — this will save you from many errors and help create more convenient code to support. To install the environment, run the `./script/setup` script.

## Github is used for everything

Expand Down
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ While tests aren't required to publish a custom component for Home Assistant, th

To begin, it is recommended to create a virtual environment and install all necessary dependencies:
```bash
./bin/setup
./script/setup
```

# Useful commands
Expand Down

0 comments on commit 7d879dd

Please sign in to comment.