浏览代码

Merge pull request #4333 from django-oscar/upgrade-pylint

[FEAT] Upgrade pylint
master
Voxin Muyli 1年前
父节点
当前提交
0567408076
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      requirements.txt
  2. 1
    1
      src/oscar/apps/catalogue/managers.py

+ 1
- 1
requirements.txt 查看文件

16
 whitenoise>=6.7.0,<6.8
16
 whitenoise>=6.7.0,<6.8
17
 
17
 
18
 # Linting
18
 # Linting
19
-pylint>=3.1.0
19
+pylint>=3.2.4
20
 pylint-django>=2.5.5
20
 pylint-django>=2.5.5
21
 black>=24.4.2
21
 black>=24.4.2
22
 
22
 

+ 1
- 1
src/oscar/apps/catalogue/managers.py 查看文件

100
         )
100
         )
101
         product_options = Option.objects.filter(product=OuterRef("pk"))
101
         product_options = Option.objects.filter(product=OuterRef("pk"))
102
         return (
102
         return (
103
-            self.select_related("product_class")
103
+            self.select_related("product_class")  # pylint:disable=E1102
104
             .annotate(
104
             .annotate(
105
                 has_product_class_options=Exists(product_class_options),
105
                 has_product_class_options=Exists(product_class_options),
106
                 has_product_options=Exists(product_options),
106
                 has_product_options=Exists(product_options),

正在加载...
取消
保存