Florian Bruhin
4d069b8fc3
Use str.removeprefix() and str.removesuffix()
...
https://docs.python.org/3/whatsnew/3.9.html#new-string-methods-to-remove-prefixes-and-suffixes
2024-10-13 18:24:44 +02:00
toofar
98421e3c35
Move webkit.http to webkit.httpheaders
...
flake8 got a new warning about a module name shadowing a builtin module: https://github.com/gforcada/flake8-builtins/pull/121
Probably would have been safe enough to ignore it. But I don't think
moving it is that hard anyway. Hopefully I didn't miss anything!
2024-04-09 08:09:31 +12:00
Florian Bruhin
2e2e0c8031
pakjoy: 100% test coverage
2023-11-22 18:02:18 +01:00
Florian Bruhin
4ffb8a37aa
scripts: Keep coverage.xml
...
useful for tools showing coverage info in e.g. your editor
2023-11-22 14:44:34 +01: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
77ca342cff
reuse: Remove some more old license headers
...
git ls-files | \
xargs grep -l "This file is part of qutebrowser" | \
xargs grep -l SPDX-License-Identifier | \
xargs sed -i '/# This file is part of qutebrowser\./,/along with qutebrowser\. If not, see <https:\/\/www\.gnu.org\/licenses\/>./d'
2023-07-23 12:15:03 +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
Florian Bruhin
583354d524
Merge remote-tracking branch 'origin/pr/6670' into dev
2022-06-13 15:47:31 +02:00
Florian Bruhin
da280df809
Clean up some remaining Python version references
2022-04-04 10:51:34 +02:00
phesch
57f0155fa0
Match counter: fix lints, implement suggestions
2021-09-08 21:19:32 +02:00
Lembrun
3d01c201b8
Added test_resources.py
2021-03-09 21:33:39 +01:00
Florian Bruhin
90af513c97
Fix coverage
2021-01-30 16:42:42 +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
Florian Bruhin
6fd2077b6c
Improve tests for filesystem completion
2021-01-20 10:30:25 +01:00
Florian Bruhin
a3c0a8759a
rfc6266: Consolidate files
2021-01-17 17:02:07 +01:00
Florian Bruhin
14373db9c7
dataclasses: Adjust import order
...
See #6023
2021-01-13 20:26:57 +01:00
Florian Bruhin
c970c63355
dataclasses: Initial switch
...
See #6023
2021-01-13 20:26:41 +01:00
Florian Bruhin
0d5e10a38f
Adjust check_coverage.py whitelist
2020-12-19 23:33:38 +01:00
Florian Bruhin
cad3394e9b
Use existing ON_CI constants
2020-12-04 19:04:52 +01:00
Florian Bruhin
5aebc55415
old qt: Adjust various comments/outputs
2020-11-04 18:30:04 +01:00
Florian Bruhin
bff1b2a7d0
old qt: Remove various conditional API handling
2020-11-04 18:30:04 +01: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
Florian Bruhin
c473a5063f
Fix lint
2020-10-19 15:04:14 +02:00
Florian Bruhin
8759d4720a
Add/improve docs for enums
2020-10-16 15:57:51 +02:00
Yegor
b2dd22c5e9
Use class-based API instead of functions for enums
2020-10-09 20:04:49 +03:00
Florian Bruhin
6f09c18ecd
Run coverage over tests/scripts
...
Rationale: https://nedbatchelder.com/blog/202008/you_should_include_your_tests_in_coverage.html
Switched from "source" to "include" as a workaround for
https://github.com/nedbat/coveragepy/issues/578 - also see:
https://github.com/LibraryOfCongress/concordia/pull/857/files
2020-08-11 19:43:05 +02:00
Florian Bruhin
ecac1503cd
ci: Show GitHub Actions markers in check_coverage
2020-07-20 16:49:32 +02:00
Florian Bruhin
de4a1c1a28
config: Split Qt argument/envvar handling to a separate file
...
Preparation for some changes for #5421
2020-07-10 11:18:00 +02:00
Florian Bruhin
f41c745ee6
Add more tests for cookie handling
2020-05-07 11:26:49 +02:00
Florian Bruhin
9e4276db9b
Adjust copyrights for 2020
2020-01-04 18:21:17 +01:00
Florian Bruhin
81212af32c
Add config.stylesheet to check_coverage
2019-12-26 23:06:35 +01:00
Florian Bruhin
17cb3b0da4
Fix lint/tests
2019-11-25 23:48:39 +01:00
Florian Bruhin
854e6689bf
Merge remote-tracking branch 'origin/pr/4498' into scroll-performance
2019-09-13 14:01:56 +02:00
Florian Bruhin
b9c13ede5b
Add qtutils to check_coverage
2019-09-02 22:32:31 +02:00
Florian Bruhin
6e0c17b510
Fix some typos
2019-08-01 18:24:47 +02:00
Jay Kamat
b8877f0c6a
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into jay/scroll-perf
2019-06-24 22:51:49 -07:00
user202729
564a69e507
Register debug-cache-stats with a decorator
2019-06-04 15:58:07 +07: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
ff6c7288b2
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into jay/scroll-perf
2019-03-01 17:18:16 -08:00
Jay Kamat
3e816f5f8b
Update copyright for 2019
2019-02-22 21:45:08 -08:00
Jay Kamat
5ca94921d2
Update perfect_files
2019-01-01 01:04:02 -08:00
Florian Bruhin
4a1333795f
Add api/interceptor.py to check_coverage
2018-12-10 19:52:20 +01:00
Florian Bruhin
b0ae4deac8
ADjust check_coverage for api/
2018-12-03 08:49:10 +01:00
Florian Bruhin
c1b9318e77
check_coverage: Add test_objects.py
2018-11-29 19:04:14 +01:00
Florian Bruhin
b7de287e7b
Move CommandError to api.cmdutils
2018-11-29 14:18:11 +01:00
Florian Bruhin
8cfa46f539
100% test coverage for browser.pdfjs
2018-09-09 18:35:09 +02:00
Jay Kamat
d4cf5045ab
Fix tests for configcache
2018-09-02 18:03:36 -07:00
Florian Bruhin
155a1901c0
Merge branch 'keys'
2018-03-04 22:50:41 +01:00