test: run flake8 with custom cfg to make it aware of flake8_quotes
Otherwise flake8 runs without the flake8-quotes extension and doesn't report anything:
| root@e519011a98e7:/code# flake8 --select=Q - < test/data/doubles.py
| root@e519011a98e7:/code#
Only when the flake8-quotes package is around, it behaves as expected:
| root@e519011a98e7:/code# pip install --break-system-packages -e .
| [...]
| root@e519011a98e7:/code# flake8 --select=Q - < test/data/doubles.py
| stdin:1:25: Q000 Double quotes found but single quotes preferred
| stdin:2:25: Q000 Double quotes found but single quotes preferred
| stdin:3:25: Q000 Double quotes found but single quotes preferred
During the Debian package build we don't have the flake8-quotes package installed, though we can make flake8 aware of the local plugin through a configuration file.
Fixes:
| Traceback (most recent call last):
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/test/test_checks.py", line 24, in test_stdin
| self.assertEqual(len(stdout_lines), 3)
| AssertionError: 0 != 3
Thanks: Chris Hofstaedtler zeha@debian.org for assistance
Closes: #1080108