Skip to content

Commit

Permalink
Adjust github actions and add dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
natekspencer committed Nov 16, 2023
1 parent d4f2b14 commit e9aa12b
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ jobs:
- name: Install dependencies
run: |
poetry install
- name: Run mypy
run: poetry run mypy src/rivian
- name: Run tests with poetry and pytest
run: poetry run pytest
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.16
uses: JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
plugins: "poetry-dynamic-versioning-plugin"
plugins: "poetry-dynamic-versioning[plugin]"
62 changes: 60 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pytest = "^7.1.2"
pytest-asyncio = "^0.18.3"
python-dotenv = "^0.20.0"
aresponses = "^2.1.5"
mypy = "^1.7.0"

[tool.poetry.extras]
ble = ["bleak", "dbus-fast"]
Expand Down
2 changes: 1 addition & 1 deletion src/rivian/ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
_LOGGER = logging.getLogger(__name__)

try:
from bleak import BleakClient, BleakScanner, BLEDevice
from bleak import BleakClient, BleakScanner, BLEDevice # type: ignore
except ImportError:
_LOGGER.error("Please install 'rivian-python-client[ble]' to use BLE features.")
raise
Expand Down

0 comments on commit e9aa12b

Please sign in to comment.