diff --git a/.circleci/config.yml b/.circleci/config.yml index 7dfde03d..9172684f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -89,6 +89,14 @@ jobs: npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN npm publish --access=public + check_api: + docker: + - image: cimg/python:3.12 + steps: + - checkout + - run: poetry install + - run: poetry run pyapi analyze + circle-all: docker: - image: node:lts @@ -134,6 +142,8 @@ workflows: httpx_version: ["0.25", "0.26", "0.27", "0.28"] - black: <<: *always-run + - check_api: + <<: *always-run - circle-all: <<: *always-run requires: @@ -154,6 +164,7 @@ workflows: - httpx-0.28 - black + - check_api - npm-build-18.20 - npm-build-20.19 - npm-build-22.14 diff --git a/.gitignore b/.gitignore index 42e155a8..ff285fa1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.pyc tmp test.py +.idea/ diff --git a/pyproject.toml b/pyproject.toml index 4c047ccb..aa996075 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ pytest = ">=7.4.0" pytest-asyncio = ">=0.23.0" uvicorn = ">=0.34.0" fastapi = ">=0.115.6" +pyapi-checker = {version = "^0.12.0", markers = "python_version >= '3.12'"} [tool.poetry.extras] cli = ["click"]