From f0b3cd02b65ade7278ea7d8cf41398eec71f6bea Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Fri, 6 Aug 2021 20:42:26 +0200
Subject: [PATCH] [enh] #186: Introduce pyupgrade pre-commit hook

Document pyupgrade in contributing
---
 .pre-commit-config.yaml | 5 +++++
 CONTRIBUTING.md         | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7ca000a1..7c6abe26 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,6 +20,11 @@ repos:
     rev: v2.8.2
     hooks:
     - id: pylint
+-   repo: https://github.com/asottile/pyupgrade
+    rev: v2.23.3
+    hooks:
+    - id: pyupgrade
+      args: [--py36-plus]
 -   repo: https://github.com/Lucas-C/pre-commit-hooks
     rev: v1.1.10
     hooks:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 277ef823..6895824e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -10,7 +10,7 @@ main <− ###_feature_branch
 
 ## Pre-commit
 We are using [`pre-commit`](https://pre-commit.com/) tool to perform checks on staged changes before committing.
-We are using it for `black` formatting, `isort` imports sorting, `pylint` code linting, `mypy` typing, and `gitlab-ci` linting.
+We are using it for `black` formatting, `isort` imports sorting, `pylint` code linting, `pyupgrade` syntax upgrader, `mypy` typing, and `gitlab-ci` linting.
 
 Install `pre-commit` from your distribution. In case it is an outdated version, install it from `pip`:
 ```bash
-- 
GitLab