From 3856ddd451686909a9bfbc92eb0a5bcb62c93bb7 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Wed, 4 May 2022 10:40:17 -0500 Subject: [PATCH 1/6] Add .flake8 config file --- .flake8 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..810d6db --- /dev/null +++ b/.flake8 @@ -0,0 +1,9 @@ +[flake8] +count = True +max-line-length = 79 +show-source = True +statistics = True +exclude = + .git, + __pycache__, + venv -- GitLab From 83d7637cc750c6a49d505319df3b4e1a6c3d0ce3 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Wed, 4 May 2022 10:40:36 -0500 Subject: [PATCH 2/6] Add pyproject.toml config file --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..af62b7a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,4 @@ +[tool.black] +line-length=79 +target-version=['py36'] +preview=true -- GitLab From cca89b3f55acb299fa4a5c83c5b0e3435b3540c2 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Wed, 4 May 2022 12:02:01 -0500 Subject: [PATCH 3/6] Add pylint to pyproject --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index af62b7a..0e3c009 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,3 +2,5 @@ line-length=79 target-version=['py36'] preview=true +[tool.pylint.format] +max-line-length = 79 -- GitLab From be2eca2e7047111bcfee8f87e0e74782cd590f1c Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Wed, 4 May 2022 14:22:22 -0500 Subject: [PATCH 4/6] Format pyproject.toml --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0e3c009..e3d7595 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] -line-length=79 -target-version=['py36'] -preview=true +line-length = 79 +target-version = ['py36'] +preview = true [tool.pylint.format] max-line-length = 79 -- GitLab From 863f7110b68deb906b837f7c441f3c5beb509dbf Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Fri, 13 May 2022 10:00:34 -0500 Subject: [PATCH 5/6] Update pyproject.toml Add message to be ignored --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e3d7595..b67c083 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,5 +2,7 @@ line-length = 79 target-version = ['py36'] preview = true +[tool.pylint.main] +disable = ["import-error", "unused-argument", "dangerous-default-value", "broad-except"] [tool.pylint.format] max-line-length = 79 -- GitLab From cd091170a4c533ba4d4335e1efa5aeaa1c18da27 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Fri, 13 May 2022 13:52:10 -0500 Subject: [PATCH 6/6] Remove dangerous-default-value from disable list --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b67c083..8a8911e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,6 @@ line-length = 79 target-version = ['py36'] preview = true [tool.pylint.main] -disable = ["import-error", "unused-argument", "dangerous-default-value", "broad-except"] +disable = ["import-error", "unused-argument", "broad-except"] [tool.pylint.format] max-line-length = 79 -- GitLab