Martin 7 жил өмнө
parent
commit
651676d613
1 өөрчлөгдсөн 41 нэмэгдсэн , 0 устгасан
  1. 41 0
      .flake8

+ 41 - 0
.flake8

@@ -0,0 +1,41 @@
+[flake8]
+max-line-length = 140
+max-complexity = 10
+exclude =
+    # Other languages
+    *.js,
+    css,
+    js,
+
+    # Bytecode
+    *.pyc,
+
+    # Configuration files
+    .git,
+
+
+ignore =
+    # *Line-break occurred before binary operator*
+    # https://lintlyci.github.io/Flake8Rules/rules/W503.html
+    # Because it is the opposite of PEP8 and will be reversed in the future
+    # e.g.:
+    #   is_amount_equal_to_immediately_after_amount = (
+    #       not is_amount_equal_to_prior_amount
+    #       and history
+    #       and insertion_idx < len(history)
+    #   )
+    W503,
+
+    # *Remove bad quotes from multiple lines string*
+    # https://github.com/zheller/flake8-quotes/blob/4dbc2e/flake8_quotes/__init__.py#L220
+    # SQL Queries are better written with 'bad quotes'(sic)
+    # e.g.:
+    #     stmt = """
+    #         UPDATE ShopSignups
+    #         SET first_device_shipment_date = %s
+    #         WHERE shop_id = %s AND first_device_shipment_date IS NULL
+    #     """
+    Q001,
+
+    # leading spaces
+    W293,