Verified Commit 8623b2aa authored by Jakob Moser's avatar Jakob Moser
Browse files

Add py.typed stub, configure typechecking

parent dd5dc37c
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+25 −0
Original line number Diff line number Diff line
lint-python:
    image: ghcr.io/astral-sh/uv:python3.12-bookworm
    stage: test
    before_script:
        - uv sync --locked
    script:
        - uv run ruff check .
        - uv run ruff format --check .
    allow_failure: true

typecheck-python:
    image: ghcr.io/astral-sh/uv:python3.12-bookworm
    stage: test
    before_script:
        - uv sync --locked
    script:
        - uv run mypy --strict . --cobertura-xml-report .mypycoverage --junit-xml typecheckresults.xml --junit-format per_file
    allow_failure: true
    artifacts:
        when: always
        reports:
            coverage_report:
                coverage_format: cobertura
                path: .mypycoverage/cobertura.xml
            junit: typecheckresults.xml
+7 −0
Original line number Diff line number Diff line
@@ -18,3 +18,10 @@ Issues = "https://gitlab.cl.uni-heidelberg.de/moser/ldap/-/issues"
[build-system]
requires = ["hatchling >= 1.26"]
build-backend = "hatchling.build"

[dependency-groups]
dev = [
    "mypy>=1.19.1",
    "ruff>=0.15.2",
    "types-ldap3>=2.9.13.20251121",
]

src/ldap/py.typed

0 → 100644
+0 −0

Empty file added.

+180 −0

File changed.

Preview size limit exceeded, changes collapsed.