Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ updates:
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
time: "08:00"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
time: "08:00"
open-pull-requests-limit: 10

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-suffix: ${{ matrix.python-version }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Retrieve version from tag name
id: retrieve-version
run: |
tag=${{ github.event.release.tag_name }}
version_number=${tag#?}
echo version: $version_number
echo "version=$version_number" >> $GITHUB_OUTPUT
tag="${{ github.event.release.tag_name }}"
version_number="${tag#?}"
echo "version: $version_number"
echo "version=$version_number" >> "$GITHUB_OUTPUT"

- name: Bump project version in pyproject.toml and commit changes to current branch and tag
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-suffix: ${{ matrix.python-version }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ repos:
- id: no-commit-to-branch
stages: [pre-commit]
args: [--branch, main]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
- repo: local
hooks:
- id: mypy
Expand Down
19 changes: 17 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ repository = "https://github.com/iMicknl/python-overkiz-api"

[dependency-groups]
dev = [
"tox<5.0.0,>=4.17.1",
"pytest>=8.3.2,<10.0.0",
"pytest-cov>=5,<8",
"pre-commit<5.0,>=3.8",
Expand All @@ -44,7 +43,7 @@ select = [
# pydocstyle
"D",
# flake8-async
# "ASYNC",
"ASYNC",
# pycodestyle
"E",
# Pyflakes
Expand All @@ -59,9 +58,25 @@ select = [
"I",
# ruff
"RUF",
# flake8-bandit (security)
"S",
# flake8-print
"T",
# flake8-comprehensions
"C4",
]
ignore = ["E501"] # Line too long

[tool.ruff.lint.per-file-ignores]
# Tests: S101 (assert) is expected, ASYNC230 (blocking open) is acceptable for fixtures
"tests/**/*.py" = ["S101", "ASYNC230"]
# S105: OAuth client secrets are public by design (embedded in mobile apps)
"pyoverkiz/const.py" = ["S105"]
# S105: Enum values contain "TOKEN" or "PASS" in API names, not passwords
"pyoverkiz/enums/*.py" = ["S105"]
# Utility scripts can use print
"utils/**/*.py" = ["T201"]
Comment on lines +70 to +78
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My preference would be to have these ignores in the file itself, so we can more easily spot it next to the code and eventually remove them.


[tool.ruff.lint.pydocstyle]
convention = "google" # Accepts: "google", "numpy", or "pep257".

Expand Down
55 changes: 0 additions & 55 deletions uv.lock

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