From 22e29313d6d935d26ec1122e89b17a4c24edd8f0 Mon Sep 17 00:00:00 2001 From: Alastair Porter Date: Tue, 19 Sep 2023 17:51:48 +0200 Subject: [PATCH] add flake8 config file --- .flake8 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 000000000..e7265a654 --- /dev/null +++ b/.flake8 @@ -0,0 +1,23 @@ +[flake8] +exclude = */migrations +extend-ignore = + # "Celery tasks should have explicit names." isn't very well implemented at this time (4/19/2020) + PIE783 + # False positive in flake8-pie 0.7 (2021-04-15) + PIE795 + PIE798 + PIE803 + + # "Logging statement uses f-string". Not a huge resource concern for us + # Same as PIE803 + G004 + +# This is used by flake8-import-order +import-order-style = pycharm +application-import-names = accounts, apiv2, bookmarks, clustering, comments, donations, favorites, follow, forum, freesound, general, geotags, messages, monitor, ratings, search, similarity, sounds, support, tags, tickets, utils, wiki +# This is used by flake8-requirements +known-modules = +max-line-length = 170 + +# This is used by flake8-annotations so that we don't have to explicitly type None in functions that don't use it +suppress-none-returning = true \ No newline at end of file