From fffe5c67044a9e2f435033d50c57ac8c2b4ab7b9 Mon Sep 17 00:00:00 2001 From: davidvujic Date: Sat, 26 Nov 2022 09:06:24 +0100 Subject: [PATCH 1/3] bump CI orb version --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e3f1a836..0d1ac27a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: '2.1' orbs: - python: circleci/python@1.0.0 + python: circleci/python@2.1.1 jobs: lint: From 16f2ca7c2eabab9592c4f6a084a868879157c4e7 Mon Sep 17 00:00:00 2001 From: davidvujic Date: Sat, 26 Nov 2022 09:14:45 +0100 Subject: [PATCH 2/3] ci: explicit set python version in circleci orb --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d1ac27a..b6583d41 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,9 @@ orbs: jobs: lint: - executor: python/default + executor: + name: python/default + tag: "3.8" steps: - checkout - python/install-packages: From 39c4f120825d0f1c7104311db7074057887a4763 Mon Sep 17 00:00:00 2001 From: davidvujic Date: Sat, 26 Nov 2022 09:18:00 +0100 Subject: [PATCH 3/3] fix: run mypy to catch any python version specific features introduced in later versions of the language --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b6583d41..2814eac9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,9 @@ jobs: pkg-manager: poetry - run: command: | + python --version poetry run flake8 + poetry run mypy . name: Linting workflows: