changeset 52756:14ad5fc73a9c

flake8: config in the right file (.flake8) - flake8 does not support configuration in pyproject.toml: https://flake8.pycqa.org/en/latest/user/configuration.html. - [flake8] in pyproject.toml is not compatible with PEP518 (describing pyproject.toml).
author Pierre Augier <pierre.augier@univ-grenoble-alpes.fr>
date Thu, 06 Feb 2025 23:04:55 +0100
parents 5c48fd4c0e68
children 1ccbca64610a
files .flake8 pyproject.toml tests/test-check-code.t
diffstat 3 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.flake8	Thu Feb 06 23:04:55 2025 +0100
@@ -0,0 +1,2 @@
+[flake8]
+max-line-length = 80
--- a/pyproject.toml	Thu Jan 30 18:22:01 2025 +0100
+++ b/pyproject.toml	Thu Feb 06 23:04:55 2025 +0100
@@ -118,7 +118,3 @@
 
 [tool.setuptools_scm]
 version_file = "mercurial/__version__.py"
-
-
-[flake8]
-max-line-length = 80
--- a/tests/test-check-code.t	Thu Jan 30 18:22:01 2025 +0100
+++ b/tests/test-check-code.t	Thu Feb 06 23:04:55 2025 +0100
@@ -57,6 +57,7 @@
   .arcconfig
   .clang-format
   .editorconfig
+  .flake8
   .gitattributes
   .hgignore
   .hgsigs