From 02bde7470c7da6e9c0977c28c8cd8c942fec0912 Mon Sep 17 00:00:00 2001 From: Sabuhi Date: Sat, 25 Feb 2023 17:29:35 +0400 Subject: [PATCH] added github actions on PR (#178) * added github actions on PR * fixed linter issue --- .github/workflows/linter.yaml | 2 ++ fastapi_mail/schemas.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 938cf04..d6ce4ae 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -3,6 +3,8 @@ name: CI on: push: branches: '**' + pull_request: + branches: '**' jobs: ci: diff --git a/fastapi_mail/schemas.py b/fastapi_mail/schemas.py index 928b74d..4bf0de8 100644 --- a/fastapi_mail/schemas.py +++ b/fastapi_mail/schemas.py @@ -4,7 +4,7 @@ from typing import Dict, List, Optional, Union from pydantic import BaseModel, EmailStr, validator -from starlette.datastructures import UploadFile, Headers +from starlette.datastructures import Headers, UploadFile from fastapi_mail.errors import WrongFile