Skip to content

Commit

Permalink
chore: Declare dependency groups as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
malmeloo committed Sep 2, 2024
1 parent b2363f5 commit 9b5687c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: |
python -m pip install poetry
poetry config virtualenvs.in-project true
poetry install
poetry install --with dev
- name: Build documentation
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
python -m pip install poetry
poetry config virtualenvs.in-project true
poetry install
poetry install --with dev
- uses: pre-commit/[email protected]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
python -m pip install poetry
poetry config virtualenvs.in-project true
poetry install
poetry install --with dev
- name: Prepare README
run: ./scripts/refactor_readme.py README.md
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
python -m pip install poetry
poetry config virtualenvs.in-project true
poetry install
poetry install --with dev
- id: supported-versions
name: Get supported versions
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
poetry config virtualenvs.in-project true
# Only install main dependencies
poetry install --only=test
poetry install --with test
- name: Run unit tests
run: poetry run pytest
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ aiohttp = "^3.9.5"
bleak = "^0.22.2"

[tool.poetry.group.dev.dependencies]
optional = true
pre-commit = "^3.8.0"
sphinx = "^7.2.6"
sphinx-autoapi = "^3.2.1"
Expand All @@ -23,6 +24,7 @@ ruff = "0.5.6"
tomli = "^2.0.1"

[tool.poetry.group.test.dependencies]
optional = true
pytest = "^8.3.2"

[tool.pyright]
Expand Down

0 comments on commit 9b5687c

Please sign in to comment.