Commit Graph

129 Commits

Author SHA1 Message Date
Florian Bruhin a25e7c2b64 Fix remaining references to old commands
Follow-up to #7809, see #7214
2023-08-15 20:15:48 +02:00
Florian Bruhin 8ddaef35d0 reuse: Fix more copyright headers
See previous commit, forgot ? after year range
2023-07-23 12:56:13 +02:00
Florian Bruhin 0718b25796 reuse: Initial copyright text update for myself
git ls-files | \
    xargs sed -Ei 's/Copyright [0-9]{4}(-[0-9]{4}) Florian Bruhin \(The Compiler\) <mail@qutebrowser\.org>/SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>/'
2023-07-23 12:49:05 +02:00
Florian Bruhin b2aaba6043 reuse: Adjust most license headers
git ls-files | xargs grep -l "is free software"  | xargs reuse annotate --license="GPL-3.0-or-later" --skip-unrecognised
2023-07-23 12:11:07 +02:00
Philipp Albrecht d9e8b638bf Remove vim modelines
We're deprecating vim modelines in favor of `.editorconfig`.

Removing vim modelines could be done using two one-liners. Most of the vim modelines
were followed by an empty line, so this one-liner took care of these ones:

```sh
rg '^# vim: .+\n\n' -l | xargs sed -i '/^# vim: /,+1d'
```

Then some of the vim modelines were followed by a pylint configuration line, so running
this one-liner afterwards took care of that:

```sh
rg '^# vim:' -l | xargs sed -i '/^# vim: /d'
```
2023-06-30 11:03:06 +02:00
toofar 2d66466194 Merge branch 'master' into qt6-v2
Just a few conflicts around CI and dependencies.
2022-11-20 15:48:00 +13:00
Florian Bruhin 4e39f9a8ce tests: Use snake-case wait_until 2022-11-08 18:27:39 +01:00
Florian Bruhin 2b86f66e48 tests: Try to fix Windows flakiness in userscript runner test 2022-11-08 18:02:57 +01:00
Florian Bruhin d47cfd99d7 Run scripts/dev/rewrite_qt_imports.sh 2022-08-23 18:09:11 +02:00
Florian Bruhin dea188d184 Fix lint and coverage 2022-05-09 12:26:23 +02:00
Florian Bruhin a84ecfb80a Display close matches for invalid commands 2022-05-09 11:48:41 +02:00
Florian Bruhin 2279d8fc23 Restore config access in commands.parser
See https://github.com/qutebrowser/qutebrowser/pull/5967#issuecomment-791373157
but no issues with circular imports here, from what I can see...
2021-03-18 14:54:25 +01:00
Florian Bruhin b7837a6d63 Merge branch 'master' into dev-split-parser 2021-03-18 14:41:38 +01:00
Florian Bruhin aefcb31da5 Merge remote-tracking branch 'origin/pr/5967' into dev 2021-03-03 18:19:42 +01:00
Lembrun b57dfaf663 Replaced py.path objects by their pathlib equivalents 2021-03-03 12:12:34 +01:00
Lembrun e8b05af233 Qtbot methods changed to snake case,snake case check added 2021-02-26 22:07:08 +01:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 222f1f19a1 Bump copyright years
Closes #6015
2021-01-20 20:06:19 +01:00
Ryan Roden-Corrent 8d1c5b690e
Eliminate parser dependency on config.
commands.runners depends on config.config to get aliases and the
best_match setting, while config.config depends on commands.runners to
split commands. Eliminate this circular dependency by:

- Moving CommandParser from commands.runners into its a new
  commands.parser module
- Pass aliases/config settings into CommandParser as arguments
2021-01-06 09:29:30 -05:00
Ryan Roden-Corrent 4cf6d91049
Add CommandParser tests.
All the existing tests just verify whether parsing suceeds or not, but
don't verify the result. These tests make it easier to see what the
intended behavior of CommandParser is.
2020-12-27 13:22:38 -05:00
Florian Bruhin 46302e488f Use enum.auto() for most enum values
Doesn't change values where they are chosen to line up with Qt enums.

See #4800
2020-10-26 15:50:54 +01:00
Yegor b2dd22c5e9 Use class-based API instead of functions for enums 2020-10-09 20:04:49 +03:00
Florian Bruhin 9e4276db9b Adjust copyrights for 2020 2020-01-04 18:21:17 +01:00
Florian Bruhin 91a5e0d098 tests: Wait until userscript runner finished
Otherwise, temporary files and processes get cleaned up after the test is
finished, leading to warning messages.
2019-07-18 11:00:50 +02:00
Florian Bruhin 33463325f4 Eschew the extraneous elses
https://www.youtube.com/watch?v=JVVMMULwR4s&t=289
2019-03-13 13:53:09 +01:00
Jay Kamat 3e816f5f8b
Update copyright for 2019 2019-02-22 21:45:08 -08:00
Florian Bruhin f6c36ccbee Rename openurl to load_url
We still call the :open command openurl, but in the tab API and in
TabbedBrowser it's now called load_url.
2018-11-30 08:31:03 +01:00
Florian Bruhin b7de287e7b Move CommandError to api.cmdutils 2018-11-29 14:18:11 +01:00
Florian Bruhin 19628d0ae9 Move cmdutils.cmd_dict to objects.commands 2018-11-29 14:18:11 +01:00
Florian Bruhin 14fe7f9b0b pass fixup 2018-11-28 12:58:48 +01:00
Florian Bruhin 2453134011 Remove unnecessary pass statements 2018-11-28 12:51:53 +01:00
Florian Bruhin 3b8964183e Use caplog.messages 2018-10-24 10:57:17 +02:00
Florian Bruhin bee04a1eec Wait until runner is finished in test_custom_env
This seems to at least lead to less warnings when running the test.
2018-03-19 11:43:08 +01:00
Florian Bruhin 6f028e9ad0 Update copyright years 2018-02-05 12:19:50 +01:00
Florian Bruhin f4ed31b295 Add an utils.Unreachable exception 2017-12-15 16:33:47 +01:00
Ryan Farley 5ed8019115 update flake8 and flake8-deprecated
Updated requirements and adjusted the configuration in `.flake8`; other
files have been modified where the lack of per-file auto-ignore caused
problems, where putty's `# flake8: disable=` syntax could be replaced
with a simpler `noqa`, or where pylint directives already suppressed the
same error.
2017-11-26 00:16:14 -06:00
Florian Bruhin f6cc6677dd Remove hiding of commands
This was often confusing for people - let's instead just hide commands which are
not available in normal mode.
2017-11-13 09:02:16 +01:00
Florian Bruhin be08cee63c Make testsuite work with LC_ALL=C 2017-11-07 17:23:38 +01:00
Gyorgy Orban 98c6b49cde use enum module instead or usertypes.enum
Remove the usertypes.enum from the source and use
the standard enum module instead.
Enum start number is available since python 3.5
2017-11-02 18:56:11 +01:00
Florian Bruhin 4f263505ee Improve tests for partial matching 2017-10-17 11:49:46 +02:00
Florian Bruhin 52423fa426 Remove unneeded variable 2017-10-17 11:37:19 +02:00
Luca Benci c8d41a4f87 Make tests pass 2017-10-10 22:54:49 +02:00
Luca Benci 052c527e4c Avoid explicit config monkeypatching 2017-10-10 22:52:57 +02:00
Luca Benci 787e3db3d5 Move tests to test_runners.py 2017-10-10 22:51:40 +02:00
Florian Bruhin 6037d44d0e Remove unused imports 2017-10-04 08:56:32 +02:00
Florian Bruhin 7cbb2b079f Use existing tabbed_browser_stubs fixture in tests 2017-10-04 06:35:42 +02:00
Florian Bruhin 10016ae240 Remove unused import 2017-09-22 08:23:06 +02:00
Florian Bruhin c652b0f96c Remove old monkeypatch 2017-09-21 23:59:16 +02:00
Florian Bruhin 46cfd5353d Use a pytest marker to fake an OS 2017-09-20 11:30:18 +02:00
Florian Bruhin ef1c83862b Use utils.is_* for platform checks everywhere 2017-09-20 11:10:24 +02:00