# HG changeset patch # User Franz Glasner # Date 1776761068 -7200 # Node ID c5fa8ee080597386ad2ae5034094b683c6e3b871 # Parent de1f67eff9d5cd3223e14235a31b2a9919bf8369 Put a flake8 configuration into the new file "tox.ini". Currently only per-file ignores for the French pseudocode. diff -r de1f67eff9d5 -r c5fa8ee08059 tests/test_fr.py --- 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", " "), diff -r de1f67eff9d5 -r c5fa8ee08059 tox.ini --- /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