From c5affa94be8762e6a96b7e02e070ea5b225b913b Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Mon, 15 Feb 2021 18:12:42 +0100
Subject: [PATCH] [mod] #332: Drop Python v3.6 support

- pyproject: set minimun Python version to 3.7.0
- Remove v3.6 test job
- Upgrade pyupgrade to --py37-plus
---
 .gitlab-ci.yml          | 6 ------
 .pre-commit-config.yaml | 2 +-
 pyproject.toml          | 2 +-
 3 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fd0b67bd..6dd8ba1c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -70,12 +70,6 @@ pyupgrade:
     - poetry install
     - poetry run pytest
 
-tests:3.6:
-  extends: .tests
-  tags: [mille]
-  variables:
-    PYTHON_VERSION: "3.6"
-
 tests:3.7:
   extends: .tests
   tags: [mille]
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9a30b0a1..2c5f2027 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -12,7 +12,7 @@ repos:
     rev: v2.21.0
     hooks:
     - id: pyupgrade
-      args: [--py36-plus]
+      args: [--py37-plus]
 -   repo: https://gitlab.com/devopshq/gitlab-ci-linter
     rev: v1.0.3
     hooks:
diff --git a/pyproject.toml b/pyproject.toml
index 751f0292..aa488d63 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -13,7 +13,7 @@ urls = { Changelog = "https://git.duniter.org/clients/python/silkaj/-/blob/dev/C
 keywords = ["g1", "duniter", "cryptocurrency", "librecurrency", "RTM"]
 
 [tool.poetry.dependencies]
-python = "^3.6.8"
+python = "^3.7.0"
 duniterpy = "1.0.0"
 click = "^8.0.0"
 tabulate = "^0.8.7"
-- 
GitLab