From 2bd5b870c13d2785a3ff7177647f307e9ff3e58a Mon Sep 17 00:00:00 2001 From: Benjamin Klimczak Date: Wed, 15 Nov 2023 12:58:02 +0000 Subject: Add linters/checkers for TOML files to pre-commits Change-Id: I8a228cbab405b4d4112e5e38856b3cb92304cba7 Signed-off-by: Benjamin Klimczak --- pyproject.toml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 52b7f41..827ae30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,6 @@ # SPDX-FileCopyrightText: Copyright (c) 2015-2022 Dropbox, Inc. # SPDX-License-Identifier: Apache-2.0 AND MIT - [build-system] requires = [ "setuptools>=42", @@ -18,9 +17,9 @@ build-backend = "setuptools.build_meta" [tool.pytest.ini_options] testpaths = "tests" markers = [ - "e2e", # e2e tests - "install", # installation tests - "command", # command tests + "e2e", # e2e tests + "install", # installation tests + "command", # command tests "model_gen" # model generation tests ] junit_logging = "all" @@ -30,17 +29,15 @@ min-similarity-lines = 10 min-public-methods = 1 max-line-length = 88 max-args = 8 -max-attributes=10 - +max-attributes = 10 # Provide basic compatibility with black disable = [ - "wrong-import-order" + "wrong-import-order" ] - enable = [ - "dangerous-default-value", # W0102 - # black will reflow code lines, but won't touch comments, error on those - "line-too-long" # C0301 + "dangerous-default-value", # W0102 + # black will reflow code lines, but won't touch comments, error on those + "line-too-long" # C0301 ] [tool.pylint.similarities] @@ -73,6 +70,6 @@ check_untyped_defs = true [[tool.mypy.overrides]] module = [ "pkg_resources", - "requests", + "requests" ] ignore_missing_imports = true -- cgit v1.2.1