From 515c3372c6888871f9d8cbda8b19524ae47d9371 Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 1 Apr 2024 19:22:08 +0200 Subject: [PATCH] Minor Changes --- .github/workflows/lint.yml | 4 +++- .github/workflows/publish.yml | 3 --- LICENSE | 2 +- README.md | 7 ------- creyPY/fastapi/pagination.py | 1 + 5 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3c32612..3414ef2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,7 +30,9 @@ jobs: tag: runs-on: ubuntu-latest needs: lint - steps: + steps: + - uses: actions/checkout@v4 + - name: Git Version uses: codacy/git-version@2.8.0 id: git_version diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5f3cc01..65af29f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,9 +11,6 @@ jobs: steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 diff --git a/LICENSE b/LICENSE index 5780813..f9261d7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Conrad +Copyright (c) 2024 Conrad Großer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 7275f4b..eeb006f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,2 @@ # creyPY My collection of Python and FastAPI shortcuts etc. - - -# Release - -``` rm -rf dist build creyPY.egg-info && python setup.py sdist bdist_wheel ``` - -``` twine upload dist/* ``` diff --git a/creyPY/fastapi/pagination.py b/creyPY/fastapi/pagination.py index 1e15e71..9ae9574 100644 --- a/creyPY/fastapi/pagination.py +++ b/creyPY/fastapi/pagination.py @@ -9,6 +9,7 @@ from pydantic.json_schema import SkipJsonSchema T = TypeVar("T") +# SkipJsonSchema is used to avoid generating invalid JSON schema in FastAPI class Page(AbstractPage[T], Generic[T]): results: Sequence[T] page: GreaterEqualOne | SkipJsonSchema[None] = None