Commit 044164f9 authored by Maximilian Köhl's avatar Maximilian Köhl
Browse files

add CI

parent 3a979658
Pipeline #15264 passed with stage
in 1 minute and 7 seconds
image: python:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
cache:
untracked: true
key: python-unicode-buffer-pip-cache
paths:
- .cache/
checks:
stage: build
script:
- pip install poetry
- poetry install
- poetry run mypy unibuf tests
- poetry run flake8 unibuf tests
- poetry run black --check unibuf tests
- poetry run pytest tests --hypothesis-show-statistics
artifacts:
paths:
- .hypothesis
expire_in: 1 day
Python Unicode Buffer
=====================
Provides access to the internal representation of Python's unicode strings via the buffer protocol.
......@@ -8,4 +8,3 @@ def build(setup_kwargs):
setup_kwargs.update(
{"ext_modules": [Extension("unibuf._unibuf", ["unibuf/_unibuf.c"])]}
)
......@@ -4,5 +4,7 @@
from __future__ import annotations
from ._unibuf import UnicodeBuffer
__all__ = ["UnicodeBuffer"]
import typing as t
class UnicodeBuffer(t.SupportsBytes):
encoding: str
def __init__(self, string: str) -> None:
pass
def __bytes__(self) -> bytes:
pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment