ソースを参照

Bump flake8 from 4.0.1 to 6.0.0 (#4021)

* Bump flake8 from 4.0.1 to 6.0.0

Bumps [flake8](https://github.com/pycqa/flake8) from 4.0.1 to 6.0.0.
- [Release notes](https://github.com/pycqa/flake8/releases)
- [Commits](https://github.com/pycqa/flake8/compare/4.0.1...6.0.0)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fixes pyflakes errors

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lars van de Kerkhof <lars@permanentmarkers.nl>
master
dependabot[bot] 2年前
コミット
49283be3f2
コミッターのメールアドレスに関連付けられたアカウントが存在しません

+ 1
- 1
requirements.txt ファイルの表示

@@ -17,7 +17,7 @@ uWSGI>=2.0.19,<2.1
17 17
 whitenoise>=5.2,<6.5
18 18
 
19 19
 # Linting
20
-flake8==4.0.1
20
+flake8==6.0.0
21 21
 flake8-debugger==4.1.2
22 22
 isort==5.10.1
23 23
 

+ 1
- 1
src/oscar/apps/dashboard/orders/forms.py ファイルの表示

@@ -99,7 +99,7 @@ class OrderSearchForm(forms.Form):
99 99
         # Ensure that 'response_format' is always set
100 100
         if 'data' in kwargs:
101 101
             data = kwargs['data']
102
-            del(kwargs['data'])
102
+            del kwargs['data']
103 103
         elif len(args) > 0:
104 104
             data = args[0]
105 105
             args = args[1:]

+ 2
- 2
src/oscar/test/factories/order.py ファイルの表示

@@ -99,9 +99,9 @@ class OrderLineFactory(factory.django.DjangoModelFactory):
99 99
     order = factory.SubFactory(OrderFactory)
100 100
     product = factory.SubFactory(
101 101
         'oscar.test.factories.ProductFactory')
102
-    partner_sku = factory.LazyAttribute(lambda l: l.product.upc)
102
+    partner_sku = factory.LazyAttribute(lambda x: x.product.upc)
103 103
     stockrecord = factory.LazyAttribute(
104
-        lambda l: l.product.stockrecords.first())
104
+        lambda s: s.product.stockrecords.first())
105 105
     quantity = 1
106 106
 
107 107
     line_price_incl_tax = factory.LazyAttribute(lambda obj: tax_add(obj.stockrecord.price) * obj.quantity)

+ 1
- 1
tests/functional/dashboard/test_review.py ファイルの表示

@@ -28,7 +28,7 @@ class ReviewsDashboardTests(WebTestCase):
28 28
         ProductReviewFactory(pk=2, user=user2, status=0)
29 29
         ProductReviewFactory(pk=3, user=user2, status=0)
30 30
 
31
-        assert(ProductReview.objects.count() == 3)
31
+        assert ProductReview.objects.count() == 3
32 32
 
33 33
         list_page = self.get(reverse('dashboard:reviews-list'))
34 34
         form = list_page.forms[1]

読み込み中…
キャンセル
保存