From 8bdb1b6b14aed3902abc44deeffcf74951abde15 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 22 Jan 2016 17:46:33 +0100 Subject: [PATCH] flake8: Add flake8-copyright plugin. Adds copyright checks to flake8 https://pypi.python.org/pypi/flake8-copyright/ --- qutebrowser/misc/checkpyver.py | 2 ++ qutebrowser/misc/earlyinit.py | 2 ++ setup.cfg | 3 +++ tox.ini | 1 + 4 files changed, 8 insertions(+) diff --git a/qutebrowser/misc/checkpyver.py b/qutebrowser/misc/checkpyver.py index 3cc57db03..e33b8d588 100644 --- a/qutebrowser/misc/checkpyver.py +++ b/qutebrowser/misc/checkpyver.py @@ -1,5 +1,7 @@ # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: +# Copyright 2014-2016 Florian Bruhin (The-Compiler) +# # This file is part of qutebrowser. # # qutebrowser is free software: you can redistribute it and/or modify diff --git a/qutebrowser/misc/earlyinit.py b/qutebrowser/misc/earlyinit.py index e052e0c35..969a40368 100644 --- a/qutebrowser/misc/earlyinit.py +++ b/qutebrowser/misc/earlyinit.py @@ -1,5 +1,7 @@ # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: +# Copyright 2014-2016 Florian Bruhin (The-Compiler) +# # This file is part of qutebrowser. # # qutebrowser is free software: you can redistribute it and/or modify diff --git a/setup.cfg b/setup.cfg index ffb25dfd7..1414f186d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,3 +31,6 @@ putty-ignore = /# flake8: disable=N803/ : +N803 /# flake8: disable=T002/ : +T002 /# flake8: disable=F841/ : +F841 +copyright-check = True +copyright-regexp = # Copyright [\d-]+ .* +copyright-min-file-size = 110 diff --git a/tox.ini b/tox.ini index 11b38977f..dac862ad9 100644 --- a/tox.ini +++ b/tox.ini @@ -157,6 +157,7 @@ deps = pep8-naming==0.3.3 flake8-putty==0.2.0 ebb-lint==0.4.3 + flake8-copyright==0.1 mccabe==0.3.1 pep8==1.7.0 pyflakes==1.0.0