Browse Source

dev: sentry-flake8 1.0.0 and fixes (#23432)

josh 4 years ago
parent
commit
b874ebbb3e

+ 1 - 1
requirements-pre-commit.txt

@@ -1,3 +1,3 @@
 pre-commit==2.9.3
 black==20.8b1
-sentry-flake8==0.4.0
+sentry-flake8==1.0.0

+ 1 - 3
setup.cfg

@@ -12,11 +12,9 @@ markers =
 
 [flake8]
 # File filtering is taken care of in pre-commit.
-# TODO(joshuarli): Remove the following that don't apply to Python 3 when they're removed in sentry-flake8:
-# B102,B301,B302,B303,B304,B305,B306,B307,B308,B309,B310,B311,B313,B315,B316
 # E203 false positive, see https://github.com/PyCQA/pycodestyle/issues/373
 # W605 false positive until python3.8: https://github.com/PyCQA/pycodestyle/issues/755
-ignore = F999,E203,E501,E128,E124,E402,W503,W504,W605,E731,C901,B007,B009,B010,B102,B301,B302,B303,B304,B305,B306,B307,B308,B309,B310,B311,B313,B315,B316
+ignore = F999,E203,E501,E128,E124,E402,W503,W504,W605,E731,C901,B007,B009,B010
 
 # XXX: E501 is ignored, which disables line length checking.
 # Currently, the black formatter doesn't wrap long strings: https://github.com/psf/black/issues/182#issuecomment-385325274

+ 0 - 1
src/sentry/nodestore/migrations/0002_nodestore_no_dictfield.py

@@ -1,6 +1,5 @@
 # -*- coding: utf-8 -*-
 # Generated by Django 1.11.29 on 2021-01-21 12:05
-from __future__ import unicode_literals
 
 from django.db import migrations, models
 

+ 0 - 2
tests/sentry/api/endpoints/test_organization_sdk_updates.py

@@ -1,5 +1,3 @@
-from __future__ import absolute_import
-
 from sentry.sdk_updates import SdkIndexState
 
 from django.core.urlresolvers import reverse

+ 0 - 2
tests/sentry/nodestore/test_common.py

@@ -1,5 +1,3 @@
-from __future__ import absolute_import
-
 """
 Testsuite of backend-independent nodestore tests. Add your backend to the
 `ns` fixture to have it tested.