From f75e74217b98f1e6cd0efcc8a9cbe6a45aafe734 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 3 Mar 2023 14:38:47 +0000 Subject: [PATCH] tests: update pre-commit --- .pre-commit-config.yaml | 1 - setup.cfg | 5 ++++- setup.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f1f7f8de..1338136d2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,7 +50,6 @@ repos: - flake8-debugger - flake8-isort - flake8-string-format - - flake8-type-annotations - repo: https://github.com/PyCQA/isort rev: 5.12.0 hooks: diff --git a/setup.cfg b/setup.cfg index 821521226..8b703af11 100644 --- a/setup.cfg +++ b/setup.cfg @@ -104,13 +104,16 @@ exclude=.asv,.eggs,.tox,.ipynb_checkpoints,build,dist,.git,__pycache__ add_ignore=D400,D415 [yapf] +spaces_before_comment=15, 20 +arithmetic_precedence_indication=true +allow_split_before_dict_value=false coalesce_brackets=True column_limit=99 each_dict_entry_on_separate_line=False -i18n_comment=NOQA space_between_ending_comma_and_closing_bracket=False split_before_named_assigns=False split_before_closing_bracket=False +blank_line_before_nested_class_or_def=False [isort] line_length=99 diff --git a/setup.py b/setup.py index 89dadf581..747fa2f41 100755 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ import pymake fpath = path.join(src_dir, 'Makefile') pymake.main(['-f', fpath] + sys.argv[2:]) + # Stop to avoid setup.py raising non-standard command error sys.exit(0)