From f62b30af9ca256fbd3d28f987b26eb98f5f3d5f8 Mon Sep 17 00:00:00 2001 From: bruno-f-cruz <7049351+bruno-f-cruz@users.noreply.github.com> Date: Mon, 20 May 2024 12:31:35 -0700 Subject: [PATCH 1/4] Add `isort` and `codespell` linters and respective settings --- pyproject.toml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cbd870e..e1c611d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,10 @@ classifiers = [ dev = [ "datamodel-code-generator", "pytest", - "black" + "black", + "isort", + "codespell", + ] jupyter = [ "ipykernel", @@ -68,3 +71,11 @@ extend-exclude = ''' | reflex-generator ) ''' + +[tool.isort] +line_length = 120 +profile = "black" + +[tool.codespell] +skip = '.git,*.pdf,*.svg' +ignore-words-list = 'nd' \ No newline at end of file From 1a50b2bf5052c982acfb2d572c53915391e3b878 Mon Sep 17 00:00:00 2001 From: bruno-f-cruz <7049351+bruno-f-cruz@users.noreply.github.com> Date: Mon, 20 May 2024 15:04:59 -0700 Subject: [PATCH 2/4] Increase line length to 108 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e1c611d..29f86a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ include = ["harp*"] [tool.setuptools_scm] [tool.black] -line-length = 88 +line-length = 108 target-version = ['py39'] include = '\.pyi?$' extend-exclude = ''' From 138e1135a1bbf0b53b6e093402477efca717fb0d Mon Sep 17 00:00:00 2001 From: bruno-f-cruz <7049351+bruno-f-cruz@users.noreply.github.com> Date: Mon, 20 May 2024 15:05:13 -0700 Subject: [PATCH 3/4] Remove isort line length override --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 29f86a6..433ef87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,8 +73,7 @@ extend-exclude = ''' ''' [tool.isort] -line_length = 120 -profile = "black" +profile = 'black' [tool.codespell] skip = '.git,*.pdf,*.svg' From 9cfdd6d30c40b3e4f5a4d267cdec46ce3906e49a Mon Sep 17 00:00:00 2001 From: bruno-f-cruz <7049351+bruno-f-cruz@users.noreply.github.com> Date: Mon, 20 May 2024 15:09:33 -0700 Subject: [PATCH 4/4] Remove empty line --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 433ef87..53744e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,9 +34,9 @@ dev = [ "pytest", "black", "isort", - "codespell", - + "codespell" ] + jupyter = [ "ipykernel", "matplotlib"