-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--output-file with end of argument (--) worked in 3.7.9 but no longer works in 6.0.0 #1774
Comments
In the flake8 source args0, rest = prelim_parser.parse_known_args(argv)
# XXX (ericvw): Special case "forwarding" the output file option so
# that it can be reparsed again for the BaseFormatter.filename.
if args0.output_file:
rest.extend(("--output-file", args0.output_file)) This basically captures the |
do you need |
It's used to ensure that later on filenames that start with For example:
|
do you have files starting with |
We have general purpose CI scripts that apply across projects company-wide. We harden those scripts against what projects might do to reduce the support burden. As an aside: |
again, I'm well aware of the use of |
Will a Pull Request that fixes the issue be accepted? |
I also can't reproduce your findings in 5.0.4 -- it also failed there too so there must be something you're not showing |
I also kinda want to remove |
My mistake, the previous CI was using |
Removing the options seem fine to me, though it triggers a major version change. 🤷 |
I believe the justification was "Windows" and tox but with WSL and other options, I'm less and less worried about this working in I haven't ever needed |
|
how did you install flake8?
unmodified output of
flake8 --bug-report
describe the problem
I've been using
flake8
in a CI environment called with something like:find . -name '*.py' -print0 | xargs -0 flake --output-file output.txt --tee --
When upgrading to v6.0.0 I got errors from the above command. It appears to be some interaction between
--output-file
and--tee
.This sequence sums up the issue pretty well. If you use the
--
which indicates no further arguments it fails to operate properly. I expected the last two commands to behave the same.The text was updated successfully, but these errors were encountered: