Skip to content

✨ [#614] Configure type checking for python code - #655

Merged
TimdeBeer1 merged 3 commits into
masterfrom
feature/614-add-type-checking
Sep 3, 2026
Merged

✨ [#614] Configure type checking for python code#655
TimdeBeer1 merged 3 commits into
masterfrom
feature/614-add-type-checking

Conversation

@TimdeBeer1

@TimdeBeer1 TimdeBeer1 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Fixes #614

Changes

Added type checking.
Only included utils

Checklist

  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how
  • Architectural design record

    • If a design decision was made that changes functionality, create an architectural design record for it here

@TimdeBeer1
TimdeBeer1 force-pushed the feature/614-add-type-checking branch 6 times, most recently from bdfcd3f to a026af3 Compare August 28, 2026 08:45
@codecov-commenter

codecov-commenter commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 97.98%. Comparing base (754d9cd) to head (6a5ab38).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/openklant/utils/serializers.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #655   +/-   ##
=======================================
  Coverage   97.98%   97.98%           
=======================================
  Files         238      238           
  Lines       14069    14069           
=======================================
  Hits        13785    13785           
  Misses        284      284           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@TimdeBeer1
TimdeBeer1 force-pushed the feature/614-add-type-checking branch from a026af3 to fdee401 Compare August 28, 2026 08:49
@TimdeBeer1
TimdeBeer1 force-pushed the feature/614-add-type-checking branch from fdee401 to 8d2f7a0 Compare August 28, 2026 09:14

@danielmursa-dev danielmursa-dev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small things! 👍

Comment thread .github/workflows/code-quality.yml Outdated
Comment thread .github/workflows/code-quality.yml Outdated

from rest_framework.serializers import Serializer
from rest_framework_nested.serializers import NestedHyperlinkedRelatedField
from rest_framework_nested.relations import NestedHyperlinkedRelatedField

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How has it worked so far?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

NestedHyperlinkedRelatedField is defined in .relations, but in .serializers it gets imported. So at runtime it works, but pyright wants it from relations directly.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank, right!

@TimdeBeer1
TimdeBeer1 merged commit b206817 into master Sep 3, 2026
31 checks passed
@TimdeBeer1
TimdeBeer1 deleted the feature/614-add-type-checking branch September 3, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add type checking with pyright

3 participants