qutebrowser/scripts/dev
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
..
ci ci: Fix pip/python usage for QtWebKit 2024-06-29 21:59:43 +02:00
pylint_checkers Use str.removeprefix() and str.removesuffix() 2024-10-13 18:24:44 +02:00
Makefile-dmg build-release: Increase macOS template size once again 2022-08-23 18:31:42 +02:00
__init__.py Remove vim modelines 2023-06-30 11:03:06 +02:00
build_pyqt_wheel.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
build_release.py Use builtin list/dict/set/... types for annotations 2024-10-15 11:54:49 +02:00
change_release.py reuse: Fix more copyright headers 2023-07-23 12:56:13 +02:00
changelog_urls.json Remove pytz changelog URL 2024-10-15 11:55:04 +02:00
check_coverage.py Use str.removeprefix() and str.removesuffix() 2024-10-13 18:24:44 +02:00
check_doc_changes.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
cleanup.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
enums.txt Add rewrite_enums.py 2022-08-23 18:09:11 +02:00
gen_versioninfo.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
get_coredumpctl_traces.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
misc_checks.py Use builtin list/dict/set/... types for annotations 2024-10-15 11:54:49 +02:00
quit_segfault_test.sh Rename :later to :cmd-later 2023-08-11 09:02:01 +02:00
recompile_requirements.py recompile_requirements: Fix with diff.mnemonicPrefix set 2024-10-15 11:55:04 +02:00
rewrite_enums.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
rewrite_find_enums.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
rewrite_find_flags.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
rewrite_qt_imports.sh Add basic qt wrapper stuff 2022-08-23 18:09:11 +02:00
run_profile.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
run_pylint_on_tests.py Enable pylint Too many positional arguments warning 2024-10-15 11:55:04 +02:00
run_shellcheck.sh reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
run_vulture.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
src2asciidoc.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
standardpaths_tester.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
strip_whitespace.sh Name strip_whitespace.sh correctly 2016-05-18 06:54:14 +02:00
ua_fetch.py scripts: Update data link for ua_fetch.py 2024-06-04 22:27:59 +02:00
update_3rdparty.py Enable pylint Too many positional arguments warning 2024-10-15 11:55:04 +02:00
update_version.py Update releasing docs 2023-08-17 14:47:49 +02:00