mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 06:53:27 +01:00
pyupgrade root
This commit is contained in:
parent
75223eedb7
commit
e262766580
3 changed files with 7 additions and 11 deletions
2
beet
2
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
|
||||
|
||||
|
|
|
|||
14
setup.cfg
14
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
|
||||
|
|
|
|||
2
setup.py
2
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue