From 2524926f7a393247f4a50662ac60ed4189b1ebbf Mon Sep 17 00:00:00 2001 From: Albert Garde Date: Sun, 28 Jan 2024 16:40:14 +0100 Subject: [PATCH] :construction_worker: Move static checks first --- .github/workflows/pre-merge.yml | 4 ++-- deepdecipher.pyi | 12 ++++++++++++ python/deepdecipher/py.typed | 0 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 deepdecipher.pyi create mode 100644 python/deepdecipher/py.typed diff --git a/.github/workflows/pre-merge.yml b/.github/workflows/pre-merge.yml index b0c4530..bf313a6 100644 --- a/.github/workflows/pre-merge.yml +++ b/.github/workflows/pre-merge.yml @@ -19,11 +19,11 @@ jobs: - uses: Swatinem/rust-cache@v2 with: prefix-key: "rust-dependencies" - - name: Build - run: cargo build --verbose - name: Clippy run: cargo clippy --no-deps - name: Format check run: cargo fmt --check + - name: Build + run: cargo build --verbose - name: Run tests run: cargo test --verbose \ No newline at end of file diff --git a/deepdecipher.pyi b/deepdecipher.pyi new file mode 100644 index 0000000..cf02b85 --- /dev/null +++ b/deepdecipher.pyi @@ -0,0 +1,12 @@ +# class Database: +# @staticmethod +# def initialize(path: str) -> None: ... +# +# @staticmethod +# def open(path: str) -> None: ... +# +# def add_model(self, model_metadata: ModelMetadata) -> None: ... + +class DataType: + @staticmethod + def json() -> DataType: ... diff --git a/python/deepdecipher/py.typed b/python/deepdecipher/py.typed new file mode 100644 index 0000000..e69de29