From fa3eb4b90efbbbd866a9ee3c4586fd1b023478e9 Mon Sep 17 00:00:00 2001 From: Ben Bariteau Date: Mon, 12 Dec 2022 15:44:45 -0800 Subject: [PATCH 1/2] fix build by pinning swagger-spec-validator<3 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 771c0fb..7e5545e 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ envlist = {py27,py36,py37}-{default,fido}, {py27,py36,py37}-fido-requests2dot17, [testenv] deps = py27: pyrsistent<0.17 + swagger-spec-validator<3.0.0; python_version<"3.7" -rrequirements-dev.txt fido: .[fido] requests2dot17: requests==2.17.0 @@ -34,6 +35,8 @@ deps = # # See also https://github.com/twisted/twisted/commit/84b79b7bdc164b17877199c27d7e3ff90a8b4e6d Twisted<21 + # since we run in py 2.7 compatible mode, swagger-spec-validator>=3.0.0 causes syntax errors + swagger-spec-validator<3.0.0 -rrequirements-dev.txt .[fido] mypy==0.790 From d50445f6a25e0fb40561ff1a0665004a510cde2b Mon Sep 17 00:00:00 2001 From: Ben Bariteau Date: Mon, 12 Dec 2022 15:46:51 -0800 Subject: [PATCH 2/2] fix flake8 url --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8e02c49..3cd5a7e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: hooks: - id: autopep8 args: ['-i', '--ignore=E309,E501'] -- repo: https://gitlab.com/pycqa/flake8.git +- repo: https://github.com/pycqa/flake8.git rev: 3.7.9 hooks: - id: flake8