changeset 29:c5fa8ee08059

Put a flake8 configuration into the new file "tox.ini". Currently only per-file ignores for the French pseudocode.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 21 Apr 2026 10:44:28 +0200
parents de1f67eff9d5
children 6f3557637f0e
files tests/test_fr.py tox.ini
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_fr.py	Tue Apr 21 10:31:28 2026 +0200
+++ b/tests/test_fr.py	Tue Apr 21 10:44:28 2026 +0200
@@ -99,7 +99,8 @@
         self.assertRaises(StopIteration, next, tokens)
 
     def test_op_replace_list_with_short_names(self):
-        tokens = pygments.lex("<= >= <> != <- -> => ^ < = > <-> <=> ", self.lexer)
+        tokens = pygments.lex("<= >= <> != <- -> => ^ < = > <-> <=> ",
+                              self.lexer)
         self.assertTokenStreamEqual(
             [("Operator", "≤"),
              ("Text.Whitespace", " "),
@@ -132,7 +133,8 @@
         self.assertRaises(StopIteration, next, tokens)
 
     def test_op_replace_complete(self):
-        tokens = pygments.lex("<= >= <> != <- -> => ^ > = < <=> <->  ", self.lexer)
+        tokens = pygments.lex("<= >= <> != <- -> => ^ > = < <=> <->  ",
+                              self.lexer)
         self.assertTokenStreamEqualComplete(
             [("Operator", "≤"),
              ("Text.Whitespace", " "),
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tox.ini	Tue Apr 21 10:44:28 2026 +0200
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+[flake8]
+per-file-ignores =
+    # E122: continuation line missing indentation or outdented
+    # E131: continuation line unaligned for hanging indent
+    # E261: at least two spaces before inline comment
+    # E265: block comment should start with '# '
+    # E501: line too long
+    pygments_lexer_pseudocode2/fr_pseudocode.py:E122,E131,E261,E265,E501
+    
\ No newline at end of file