diff options
author | Philipp Albrecht <palbrecht@mailbox.org> | 2023-06-30 10:57:51 +0200 |
---|---|---|
committer | Philipp Albrecht <palbrecht@mailbox.org> | 2023-06-30 11:03:06 +0200 |
commit | d9e8b638bf6d20ff6d2179db7c105385c8ddad1d (patch) | |
tree | dc512a22230ae531ae1ef308573dbe0bd354f60b /scripts | |
parent | 4a31c537c252bf6bf60dd028330741bc43e4e9a1 (diff) | |
download | qutebrowser-d9e8b638bf6d20ff6d2179db7c105385c8ddad1d.tar.gz qutebrowser-d9e8b638bf6d20ff6d2179db7c105385c8ddad1d.zip |
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'
```
Diffstat (limited to 'scripts')
41 files changed, 0 insertions, 82 deletions
diff --git a/scripts/__init__.py b/scripts/__init__.py index 90be1e04d..7985e7bbc 100644 --- a/scripts/__init__.py +++ b/scripts/__init__.py @@ -1,3 +1 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - """Various utility scripts.""" diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py index a7816e132..09405c3e7 100755 --- a/scripts/asciidoc2html.py +++ b/scripts/asciidoc2html.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/__init__.py b/scripts/dev/__init__.py index 7dc043361..38246491d 100644 --- a/scripts/dev/__init__.py +++ b/scripts/dev/__init__.py @@ -1,3 +1 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - """Various scripts used for developing qutebrowser.""" diff --git a/scripts/dev/build_pyqt_wheel.py b/scripts/dev/build_pyqt_wheel.py index b63331341..697cc1ac1 100644 --- a/scripts/dev/build_pyqt_wheel.py +++ b/scripts/dev/build_pyqt_wheel.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2020-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 04d07f59b..996487693 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/change_release.py b/scripts/dev/change_release.py index b033b04ea..882f4543d 100644 --- a/scripts/dev/change_release.py +++ b/scripts/dev/change_release.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/check_coverage.py b/scripts/dev/check_coverage.py index 0f8b23554..912e4cbc4 100644 --- a/scripts/dev/check_coverage.py +++ b/scripts/dev/check_coverage.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/check_doc_changes.py b/scripts/dev/check_doc_changes.py index 5e3a457b6..53ef12090 100755 --- a/scripts/dev/check_doc_changes.py +++ b/scripts/dev/check_doc_changes.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2016-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/ci/docker/generate.py b/scripts/dev/ci/docker/generate.py index dc2a8cffe..ee4fd28d5 100644 --- a/scripts/dev/ci/docker/generate.py +++ b/scripts/dev/ci/docker/generate.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2019-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/ci/problemmatchers.py b/scripts/dev/ci/problemmatchers.py index c59eabeb0..af6521c0a 100644 --- a/scripts/dev/ci/problemmatchers.py +++ b/scripts/dev/ci/problemmatchers.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=sh fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2020-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/cleanup.py b/scripts/dev/cleanup.py index 4f4842f3b..4a05e56b4 100755 --- a/scripts/dev/cleanup.py +++ b/scripts/dev/cleanup.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/gen_versioninfo.py b/scripts/dev/gen_versioninfo.py index 56610721d..ecce10adf 100644 --- a/scripts/dev/gen_versioninfo.py +++ b/scripts/dev/gen_versioninfo.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2018-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/get_coredumpctl_traces.py b/scripts/dev/get_coredumpctl_traces.py index 88a0a5b0c..8db91bacd 100644 --- a/scripts/dev/get_coredumpctl_traces.py +++ b/scripts/dev/get_coredumpctl_traces.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py index 998929827..82c3d48c1 100644 --- a/scripts/dev/misc_checks.py +++ b/scripts/dev/misc_checks.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/pylint_checkers/qute_pylint/config.py b/scripts/dev/pylint_checkers/qute_pylint/config.py index 420ecb4ec..1f08d66be 100644 --- a/scripts/dev/pylint_checkers/qute_pylint/config.py +++ b/scripts/dev/pylint_checkers/qute_pylint/config.py @@ -1,5 +1,3 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/pylint_checkers/setup.py b/scripts/dev/pylint_checkers/setup.py index e67fbe074..e9bd960bc 100644 --- a/scripts/dev/pylint_checkers/setup.py +++ b/scripts/dev/pylint_checkers/setup.py @@ -1,7 +1,5 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2016-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/recompile_requirements.py b/scripts/dev/recompile_requirements.py index 8459031e2..8ca895f99 100644 --- a/scripts/dev/recompile_requirements.py +++ b/scripts/dev/recompile_requirements.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2016-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/rewrite_enums.py b/scripts/dev/rewrite_enums.py index cb3dedbd1..2d36f0912 100644 --- a/scripts/dev/rewrite_enums.py +++ b/scripts/dev/rewrite_enums.py @@ -1,5 +1,3 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2021-2022 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/rewrite_find_enums.py b/scripts/dev/rewrite_find_enums.py index 2ea7e81c6..327705664 100644 --- a/scripts/dev/rewrite_find_enums.py +++ b/scripts/dev/rewrite_find_enums.py @@ -1,5 +1,3 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2021-2022 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/rewrite_find_flags.py b/scripts/dev/rewrite_find_flags.py index 79436f4c8..9e269ac9b 100644 --- a/scripts/dev/rewrite_find_flags.py +++ b/scripts/dev/rewrite_find_flags.py @@ -1,5 +1,3 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2021-2022 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/run_profile.py b/scripts/dev/run_profile.py index 2799a031b..ca4e9ce86 100755 --- a/scripts/dev/run_profile.py +++ b/scripts/dev/run_profile.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/run_pylint_on_tests.py b/scripts/dev/run_pylint_on_tests.py index e044de976..a6083bb97 100644 --- a/scripts/dev/run_pylint_on_tests.py +++ b/scripts/dev/run_pylint_on_tests.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/run_shellcheck.sh b/scripts/dev/run_shellcheck.sh index 1556f9654..0cd0c25ed 100644 --- a/scripts/dev/run_shellcheck.sh +++ b/scripts/dev/run_shellcheck.sh @@ -1,6 +1,4 @@ #!/bin/bash -# vim: ft=sh fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2020-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/run_vulture.py b/scripts/dev/run_vulture.py index 0bbfb3bfa..a92a0f27e 100755 --- a/scripts/dev/run_vulture.py +++ b/scripts/dev/run_vulture.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/src2asciidoc.py b/scripts/dev/src2asciidoc.py index 2ad4dd60b..f1fd50279 100755 --- a/scripts/dev/src2asciidoc.py +++ b/scripts/dev/src2asciidoc.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/dev/standardpaths_tester.py b/scripts/dev/standardpaths_tester.py index 03de7f887..ff85b2a4c 100644 --- a/scripts/dev/standardpaths_tester.py +++ b/scripts/dev/standardpaths_tester.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2017-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/ua_fetch.py b/scripts/dev/ua_fetch.py index 743cd252e..2bcdda2f3 100644 --- a/scripts/dev/ua_fetch.py +++ b/scripts/dev/ua_fetch.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/dev/update_3rdparty.py b/scripts/dev/update_3rdparty.py index 71d7ae7b5..fd15f2ecd 100755 --- a/scripts/dev/update_3rdparty.py +++ b/scripts/dev/update_3rdparty.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2016-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # Copyright 2015 Daniel Schadt # diff --git a/scripts/dev/update_version.py b/scripts/dev/update_version.py index 67e22ea26..6cf6a1013 100644 --- a/scripts/dev/update_version.py +++ b/scripts/dev/update_version.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2018-2021 Andy Mender <andymenderunix@gmail.com> # Copyright 2019-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> diff --git a/scripts/dictcli.py b/scripts/dictcli.py index 0b14bb831..6a6b49f24 100755 --- a/scripts/dictcli.py +++ b/scripts/dictcli.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2017-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # Copyright 2017-2018 Michal Siedlaczek <michal.siedlaczek@gmail.com> diff --git a/scripts/hist_importer.py b/scripts/hist_importer.py index df12bcf2e..7dc5906e3 100755 --- a/scripts/hist_importer.py +++ b/scripts/hist_importer.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2017-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # Copyright 2017-2018 Josefson Souza <josefson.br@gmail.com> diff --git a/scripts/hostblock_blame.py b/scripts/hostblock_blame.py index b18c62925..271ff2ff0 100644 --- a/scripts/hostblock_blame.py +++ b/scripts/hostblock_blame.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/importer.py b/scripts/importer.py index d23c1e0da..d3817b13f 100755 --- a/scripts/importer.py +++ b/scripts/importer.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # Copyright 2014-2018 Claude (longneck) <longneck@scratchbook.ch> diff --git a/scripts/keytester.py b/scripts/keytester.py index bc9a22263..6d994114d 100644 --- a/scripts/keytester.py +++ b/scripts/keytester.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py index 028c18ee2..4581bef41 100644 --- a/scripts/link_pyqt.py +++ b/scripts/link_pyqt.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/mkvenv.py b/scripts/mkvenv.py index f65d36170..625cedd1a 100755 --- a/scripts/mkvenv.py +++ b/scripts/mkvenv.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2020-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/opengl_info.py b/scripts/opengl_info.py index 1bfdf22aa..5dc8f81c6 100644 --- a/scripts/opengl_info.py +++ b/scripts/opengl_info.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2020-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/setupcommon.py b/scripts/setupcommon.py index bd549d7cc..15751cbe7 100644 --- a/scripts/setupcommon.py +++ b/scripts/setupcommon.py @@ -1,5 +1,3 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. diff --git a/scripts/testbrowser/testbrowser_webengine.py b/scripts/testbrowser/testbrowser_webengine.py index 4351d1f7f..9a4f0a30f 100755 --- a/scripts/testbrowser/testbrowser_webengine.py +++ b/scripts/testbrowser/testbrowser_webengine.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/testbrowser/testbrowser_webkit.py b/scripts/testbrowser/testbrowser_webkit.py index 40938d06b..d66f58252 100755 --- a/scripts/testbrowser/testbrowser_webkit.py +++ b/scripts/testbrowser/testbrowser_webkit.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. diff --git a/scripts/utils.py b/scripts/utils.py index 6663069c9..87b659545 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -1,5 +1,3 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. |