From edfb1bd5133b69946f6dbcf04162189e32b1303b Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Tue, 10 Jan 2023 18:54:11 -0800 Subject: [PATCH] quickfix: pydantic / lint fix (#452) * backend: use latest pydantic again, fix pylint with custom .pylintrc (as suggested in pydantic/pydantic#1961) --- .github/workflows/lint.yaml | 3 ++- backend/.pylintrc | 2 ++ backend/requirements.txt | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 backend/.pylintrc diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index c6cf6fa5..24a7777a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -25,4 +25,5 @@ jobs: - name: Lint Check run: | - pylint backend/btrixcloud/ + cd backend/ + pylint btrixcloud/ diff --git a/backend/.pylintrc b/backend/.pylintrc new file mode 100644 index 00000000..582803de --- /dev/null +++ b/backend/.pylintrc @@ -0,0 +1,2 @@ +[MASTER] +extension-pkg-whitelist=pydantic diff --git a/backend/requirements.txt b/backend/requirements.txt index 0f3865fb..53e407bf 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -3,7 +3,6 @@ fastapi==0.71.0 fastapi-users[mongodb]==9.2.2 loguru aiofiles -pydantic==1.8.2 kubernetes-asyncio==22.6.5 aiobotocore redis>=4.2.0rc1