qutebrowser/scripts
toofar cc3c1e2050 Enable pylint Too many positional arguments warning
This re-enables the pylint too-many-positional-arguments for the main
application code. It's still disabled for tests because that's how you pull in
pytlint fixtures, and I don't think we want to push people into being creative
with fixtures just to get around that.

When functions are called with many positional arguments the reader has to do
a bit of heavy lifting to figure out in what position a value is being passed,
and it's easier to make mistakes. So I would like to encourage using keyword
arguments for long argument lists.

I've set the `max-positional-arguments` to a completely arbitrary 7, from a
completely arbitrary 5, because there were many more violations under 7. If
like 99% of our functions fit under 7 it's probably fine.

Regarding the exceptions:
* objreg.register: I grepped it and it looks like everything is only passing
  the first two args as positional already, lucky!
*  `_get_color_percentage`: only one usage of it, but I was in "add directive
  comment" mode
* update_3rdparty.py: only one usage, already using kwargs
* pyqtProperty: idk
* commands.py: "its complicated". Many methods in this file map to commands
  used in qutebrowser's command mode. In that case it's usual for them to be
  called as flags, rather than positional. But it could be complicated to wade
  into that, and having one file excluded isn't so bad.
2024-10-15 11:55:04 +02:00
..
dev Enable pylint Too many positional arguments warning 2024-10-15 11:55:04 +02:00
testbrowser reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
__init__.py Remove vim modelines 2023-06-30 11:03:06 +02:00
asciidoc2html.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
cycle-inputs.js RIP Freenode 2021-05-26 09:34:37 +02:00
dictcli.py reuse: Update remaining copyright texts 2023-07-23 12:52:01 +02:00
hist_importer.py Fix lint/tests 2023-07-23 14:10:10 +02:00
hostblock_blame.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
importer.py importer: Stop using deprecated bs4 findAll 2024-03-26 14:09:09 +01:00
keytester.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
link_pyqt.py scripts: Fix typo 2023-10-17 09:46:44 +02:00
mkvenv.py Use builtin list/dict/set/... types for annotations 2024-10-15 11:54:49 +02:00
open_url_in_instance.sh Let a script complain if socat is not installed. 2020-09-26 22:24:20 +03:00
opengl_info.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
setupcommon.py Fix lint/tests 2023-07-23 14:10:10 +02:00
utils.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00