diff --git a/beet b/beet index 21fa085b9..abf55ec27 100755 --- a/beet +++ b/beet @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. @@ -15,7 +14,6 @@ # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. -from __future__ import division, absolute_import, print_function import beets.ui diff --git a/setup.cfg b/setup.cfg index 7bcd41620..778341a9b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [flake8] -min-version = 2.7 +min-version = 3.6 accept-encodings = utf-8 docstring-convention = google # errors we ignore; see https://www.flake8rules.com/ for more info @@ -20,12 +20,12 @@ ignore = # mccabe error C901, # function is too complex # future-import errors - FI12, # `__future__` import "with_statement" missing - FI14, # `__future__` import "unicode_literals" missing - FI15, # `__future__` import "generator_stop" missing - FI50, # `__future__` import "division" present - FI51, # `__future__` import "absolute_import" present - FI53, # `__future__` import "print_function" present + # FI12, # `__future__` import "with_statement" missing + # FI14, # `__future__` import "unicode_literals" missing + # FI15, # `__future__` import "generator_stop" missing + # FI50, # `__future__` import "division" present + # FI51, # `__future__` import "absolute_import" present + # FI53, # `__future__` import "print_function" present N818, # Exception subclasses should be named with an Error suffix per-file-ignores = ./beet:D diff --git a/setup.py b/setup.py index 88d88874f..1f10b345f 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. @@ -15,7 +14,6 @@ # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. -from __future__ import division, absolute_import, print_function import os import sys