Updated ics_calendar.
This commit is contained in:
46
custom_components/ics_calendar/.github/workflows/lint.yaml
vendored
Normal file
46
custom_components/ics_calendar/.github/workflows/lint.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [releases]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v3
|
||||
with:
|
||||
version: "0.4.20"
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: "pyproject.toml"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uv sync --prerelease=allow --dev --extra tests
|
||||
|
||||
- name: Run isort --check
|
||||
run: |
|
||||
uv run --prerelease=allow isort --check custom_components/ics_calendar tests
|
||||
|
||||
- name: Run black --check
|
||||
run: |
|
||||
uv run --prerelease=allow black --check custom_components/ics_calendar tests
|
||||
|
||||
- name: Run flake8
|
||||
run: |
|
||||
uv run --prerelease=allow flake8
|
||||
|
||||
- name: Run pydocstyle
|
||||
run: |
|
||||
uv run --prerelease=allow pydocstyle -v custom_components/ics_calendar tests
|
||||
|
||||
- name: Run pylint
|
||||
run: |
|
||||
uv run --prerelease=allow pylint custom_components/ics_calendar
|
||||
Reference in New Issue
Block a user