From 989c35b224e9e4918d2d60916cc87d03c30b017d Mon Sep 17 00:00:00 2001 From: Zach Williams Date: Mon, 18 Jul 2022 21:21:49 -0500 Subject: [PATCH] Added vscode settings to use black and flake8 --- .flake8 | 5 +++++ .vscode/settings.json | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .flake8 create mode 100644 .vscode/settings.json diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..7354731 --- /dev/null +++ b/.flake8 @@ -0,0 +1,5 @@ +[flake8] +max-line-length = 88 +extend-ignore = + # See https://github.com/PyCQA/pycodestyle/issues/373 + E203, \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..223d85c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,17 @@ +{ + "python.testing.unittestArgs": [ + "-v", + "-s", + "tests", + "-p", + "test_*.py" + ], + "python.testing.pytestEnabled": false, + "python.testing.unittestEnabled": true, + "editor.formatOnSave": true, + "python.linting.flake8Args": [ + "--config", + "${workspaceFolder}/.flake8" + ], + "python.linting.flake8Enabled": true +} \ No newline at end of file