Skip to content

Commit

Permalink
add flake8 config file
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Oct 16, 2023
1 parent 1c7b9de commit 22e2931
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 22e2931

Please sign in to comment.