From 0310e25f9979fb61e3ed1ff46c87021ce9b437cf Mon Sep 17 00:00:00 2001 From: Paul Cothenet Date: Thu, 11 Nov 2021 08:24:31 -0800 Subject: [PATCH] Update to more recent version of pre-commit-hooks (#46) * Modernize pre-commit hooks * Test * Test * Test * Test * Test * Test * Test --- .pre-commit-config.yaml | 8 ++++++-- test/test_orders_api.py | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 39aaa05..40339fd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,17 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 + rev: v4.0.1 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace + - id: name-tests-test +- repo: https://github.com/pycqa/flake8 + rev: '4.0.1' + hooks: - id: flake8 args: ['--config=.flake8'] - repo: https://github.com/psf/black - rev: 21.6b0 + rev: 21.10b0 hooks: - id: black diff --git a/test/test_orders_api.py b/test/test_orders_api.py index b0432b2..25f7abf 100644 --- a/test/test_orders_api.py +++ b/test/test_orders_api.py @@ -10,7 +10,6 @@ Generated by: https://openapi-generator.tech """ - from __future__ import absolute_import import unittest