tests: update pre-commit

This commit is contained in:
Casper da Costa-Luis 2023-03-03 14:38:47 +00:00
parent e213e88e55
commit f75e74217b
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
3 changed files with 5 additions and 2 deletions

View File

@ -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:

View File

@ -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

View File

@ -10,6 +10,7 @@ if sys.argv[1].lower().strip() == 'make': # exec Makefile commands
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)