Browse Source

pyupgrade root

pull/4034/head
Andrew Rogl 3 months ago
parent
commit
e262766580
  1. 2
      beet
  2. 14
      setup.cfg
  3. 2
      setup.py

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

@ -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

@ -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…
Cancel
Save