summaryrefslogtreecommitdiff
path: root/.flake8
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2024-06-24 20:34:43 +0200
committernessita <124304+nessita@users.noreply.github.com>2025-05-05 11:46:49 -0300
commitafe52d89c4f42870622a4bb161ab5f4d4913aac5 (patch)
tree7ae079c42c7e6cb15549851a5d606afc54b0b9ed /.flake8
parent35c34ed2d0039db98a871da300531514bb0cbac0 (diff)
[4.2.x] Migrated setuptools configuration to pyproject.toml.
This branch migrates setuptools configuration from setup.py/setup.cfg to pyproject.toml. In order to ensure that the generated binary files have consistent casing (both the tarball and the wheel), setuptools version is limited to ">=61.0.0,<69.3.0". Configuration for flake8 was moved to a dedicated .flake8 file since it cannot be configured via pyproject.toml. Also, __pycache__ exclusion was removed from MANIFEST and the extras/Makefile was replaced with a simpler build command. Co-authored-by: Nick Pope <nick@nickpope.me.uk> Backport of 4686541691dbe986f58ac87630c3b7a04db4ff93 from main.
Diffstat (limited to '.flake8')
-rw-r--r--.flake89
1 files changed, 9 insertions, 0 deletions
diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000000..c4094af462
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,9 @@
+[flake8]
+exclude = build,.git,.tox,./tests/.env
+extend-ignore = E203
+max-line-length = 88
+per-file-ignores =
+ django/core/cache/backends/filebased.py:W601
+ django/core/cache/backends/base.py:W601
+ django/core/cache/backends/redis.py:W601
+ tests/cache/tests.py:W601