From 775553056b828f1405e1ec2a4d100afa0b3b1aee Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Fri, 29 Mar 2024 11:01:32 +0000 Subject: [PATCH] fix flake --- .flake8 | 2 ++ .github/workflows/python-lint-test.yml | 2 +- kadet/__init__.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..aa079ec --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +max-line-length=120 diff --git a/.github/workflows/python-lint-test.yml b/.github/workflows/python-lint-test.yml index 1859a5e..db6d806 100644 --- a/.github/workflows/python-lint-test.yml +++ b/.github/workflows/python-lint-test.yml @@ -25,7 +25,7 @@ jobs: - name: Lint with flake8 run: | - flake8 --max-line-length=120 --statistics --show-source . + flake8 --statistics --show-source . - name: Lint with black run: | diff --git a/kadet/__init__.py b/kadet/__init__.py index 39fcd5d..cb47e79 100644 --- a/kadet/__init__.py +++ b/kadet/__init__.py @@ -4,7 +4,7 @@ import hashlib import json -from typing import Any, Annotated +from typing import Annotated import yaml from box import Box, BoxList from pydantic import BaseModel as PydanticBaseModel, Field