From ea077cece94f9d556ca34109bcd6a1ae25d429f7 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 3 Aug 2022 15:21:26 +0200 Subject: flake8: Reenable flake8-copyright and flake8-future-import Partial revert of faf04f3791e533b5b6d69282e4bf063032eca419 --- misc/requirements/requirements-flake8.txt | 4 +++- misc/requirements/requirements-flake8.txt-raw | 6 +++--- scripts/dev/ua_fetch.py | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/misc/requirements/requirements-flake8.txt b/misc/requirements/requirements-flake8.txt index cf42b751c..e83e4c4bf 100644 --- a/misc/requirements/requirements-flake8.txt +++ b/misc/requirements/requirements-flake8.txt @@ -1,13 +1,15 @@ # This file is automatically generated by scripts/dev/recompile_requirements.py attrs==22.1.0 -flake8==5.0.1 +flake8==5.0.3 flake8-bugbear==22.7.1 flake8-builtins==1.5.3 flake8-comprehensions==3.10.0 +flake8-copyright==0.2.3 flake8-debugger==4.1.2 flake8-deprecated==1.3 flake8-docstrings==1.6.0 +flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 flake8-string-format==0.3.0 diff --git a/misc/requirements/requirements-flake8.txt-raw b/misc/requirements/requirements-flake8.txt-raw index 5d24b8494..de6bb733a 100644 --- a/misc/requirements/requirements-flake8.txt-raw +++ b/misc/requirements/requirements-flake8.txt-raw @@ -5,9 +5,9 @@ flake8-comprehensions flake8-debugger flake8-deprecated flake8-docstrings -# https://github.com/PyCQA/flake8/issues/325 -# flake8-copyright -# flake8-future-import +flake8-copyright +flake8-future-import +# https://github.com/aleGpereira/flake8-mock/issues/10 # flake8-mock flake8-string-format flake8-tidy-imports diff --git a/scripts/dev/ua_fetch.py b/scripts/dev/ua_fetch.py index 7c0692cb4..6e5bc66ac 100644 --- a/scripts/dev/ua_fetch.py +++ b/scripts/dev/ua_fetch.py @@ -1,6 +1,23 @@ #!/usr/bin/env python3 # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: +# Copyright 2015-2021 Florian Bruhin (The Compiler) +# +# This file is part of qutebrowser. +# +# qutebrowser is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# qutebrowser is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with qutebrowser. If not, see . + """Fetch and print the most common user agents. This script fetches the most common user agents according to -- cgit v1.2.3-54-g00ecf