Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .github/workflows/bandit.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/bandit_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Bandit
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
analyze:
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
steps:
- uses: actions/checkout@v4

- name: Setup uv
uses: astral-sh/setup-uv@v6

- name: Run Bandit
run: |
uv run bandit --configfile pyproject.toml --recursive . --format sarif --output results.sarif || true

- name: Upload SARIF report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
2 changes: 0 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# see https://github.com/marketplace/actions/publish-python-poetry-package

name: Upload Release to PyPi

on:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# This workflow will install Python dependencies and run tests with supported Python versions

name: Test Multiple Python Versions
name: Test with Supported Python Versions

on:
push:
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dependencies = [
[dependency-groups]
dev = [
"aioresponses>=0.7.8",
"bandit[sarif,toml]>=1.8.6",
"build>=1.2.2.post1",
"freezegun>=1.5.2",
"pre-commit>=4.2.0",
Expand All @@ -36,3 +37,6 @@ dev = [
"twine>=6.1.0",
"typeguard>=4.4.4",
]

[tool.bandit]
exclude_dirs = ["tests", ".venv"]
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_paa_codium.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from lxml import html

from conftest import LoginType, add_signin
from tests.conftest import LoginType, add_signin
from pyadtpulse.exceptions import PulseAuthenticationError, PulseNotLoggedInError
from pyadtpulse.pyadtpulse_async import PyADTPulseAsync
from pyadtpulse.site import ADTPulseSite
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pqm_codium.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from aiohttp.client_reqrep import ConnectionKey
from yarl import URL

from conftest import MOCKED_API_VERSION
from tests.conftest import MOCKED_API_VERSION
from pyadtpulse.exceptions import (
PulseClientConnectionError,
PulseNotLoggedInError,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pulse_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from aioresponses import aioresponses
from pytest_mock import MockerFixture

from conftest import LoginType, add_custom_response, add_logout, add_signin
from tests.conftest import LoginType, add_custom_response, add_logout, add_signin
from pyadtpulse.const import (
ADT_DEFAULT_POLL_INTERVAL,
ADT_DEVICE_URI,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pulse_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pytest
from lxml import html

from conftest import LoginType, add_custom_response, add_signin
from tests.conftest import LoginType, add_custom_response, add_signin
from pyadtpulse.const import ADT_LOGIN_URI, DEFAULT_API_HOST
from pyadtpulse.exceptions import (
PulseAccountLockedError,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pulse_query_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from freezegun.api import FrozenDateTimeFactory, StepTickTimeFactory
from lxml import html

from conftest import MOCKED_API_VERSION
from tests.conftest import MOCKED_API_VERSION
from pyadtpulse.const import ADT_ORB_URI, DEFAULT_API_HOST
from pyadtpulse.exceptions import (
PulseClientConnectionError,
Expand Down
92 changes: 92 additions & 0 deletions uv.lock

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

Loading