You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise flake8 might run 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
E.g. during a 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
Closes: zheller#122
Thanks: Chris Hofstaedtler <[email protected]> for assistance
mika
linked a pull request
Oct 11, 2024
that will
close
this issue
This was reported as https://bugs.debian.org/1080108 in Debian, quoting the relevant build failure:
This is caused by executing
flake8 -select=Q - < data/doubles.py
without having the flake8-quotes extension explicitly available at this stage.I provided a MR for the Debian packaging at https://salsa.debian.org/python-team/packages/flake8-quotes/-/merge_requests/1 and will provide a PR here which makes sure to run flake8 with a custom configuration which makes sure the flake8-quotes package is found.
The text was updated successfully, but these errors were encountered: