diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..0bac502 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,27 @@ +name: "Lint" + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * *" + +jobs: + lint: + name: Lint + runs-on: "ubuntu-latest" + steps: + - name: "Checkout the repository" + uses: actions/checkout@v4 + + - name: "Set up Python" + uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: "pip" + + - name: "Install requirements" + run: python3 -m pip install -r requirements_release.txt + + - name: "Run" + run: python3 -m ruff check . diff --git a/docs/installation_and_configuration.md b/docs/installation_and_configuration.md index 51f0ade..819fced 100644 --- a/docs/installation_and_configuration.md +++ b/docs/installation_and_configuration.md @@ -64,7 +64,7 @@ o365: Key | Type | Required | Description -- | -- | -- | -- -`account_name` | `string` | `True` | Uniquely identifying name for the account. Calendars entity names will be suffixed with this. `calendar.calendar_account1` +`account_name` | `string` | `True` | Uniquely identifying name for the account. Calendars entity names will be suffixed with this. `calendar.calendar_account1`. Do not use email address or spaces. `client_id` | `string` | `True` | Client ID from your O365 application. `client_secret` | `string` | `True` | Client Secret from your O365 application. `alt_auth_method` | `boolean` | `False` | If False (default), authentication is not dependent on internet access to your HA instance. [See Authentication](./authentication.md) diff --git a/requirements_release.txt b/requirements_release.txt index c9399f6..6f6ea77 100644 --- a/requirements_release.txt +++ b/requirements_release.txt @@ -1 +1,2 @@ PyGithub>=1.51 +ruff==0.4.2