From bc6f7f460ae2bbffa38402f68d1f7a78d30da2ba Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Sun, 5 Mar 2023 18:39:46 +0100
Subject: [PATCH] Remove autoflake, isort, pylint, pyupgrade (#458)

Remove their pre-commit and gitlab-ci configs
Remove isort and pylint configs

will be replaced with ruff
---
 .flake8                 |  3 ---
 .gitlab-ci.yml          | 32 --------------------------------
 .pre-commit-config.yaml | 25 -------------------------
 pyproject.toml          |  9 ---------
 4 files changed, 69 deletions(-)
 delete mode 100644 .flake8

diff --git a/.flake8 b/.flake8
deleted file mode 100644
index 39eea369..00000000
--- a/.flake8
+++ /dev/null
@@ -1,3 +0,0 @@
-[flake8]
-max-line-length = 101
-inline-quotes = "
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 50308f24..bf895f2d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -48,14 +48,6 @@ build:
     paths:
       - ${PRE_COMMIT_HOME}
 
-autoflake:
-  extends:
-    - .code_changes
-    - .pre-commit
-  stage: checks
-  script:
-    - pre-commit run -a autoflake
-
 format:
   extends:
     - .code_changes
@@ -64,14 +56,6 @@ format:
   script:
     - pre-commit run -a black
 
-isort:
-  extends:
-    - .code_changes
-    - .pre-commit
-  stage: checks
-  script:
-    - pre-commit run -a isort
-
 mypy:
   extends:
     - .code_changes
@@ -80,22 +64,6 @@ mypy:
   script:
     - pre-commit run -a mypy
 
-pylint:
-  extends:
-    - .code_changes
-    - .pre-commit
-  stage: checks
-  script:
-    - pre-commit run -a pylint
-
-pyupgrade:
-  extends:
-    - .code_changes
-    - .pre-commit
-  stage: checks
-  script:
-    - pre-commit run -a pyupgrade
-
 pre-commit:hooks:
   extends:
     - .doc_changes
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b1a63421..a773956b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,39 +10,14 @@ repos:
       - id: end-of-file-fixer
       - id: mixed-line-ending
       - id: trailing-whitespace
--   repo: https://github.com/PyCQA/autoflake
-    rev: v2.0.1
-    hooks:
-    -   id: autoflake
-        args:
-        - --recursive
-        - --expand-star-imports
-        - --remove-all-unused-imports
-        - --remove-duplicate-keys
-        - --remove-unused-variables
-        - --in-place
 -   repo: https://github.com/psf/black
     rev: 23.1.0
     hooks:
     - id: black
--   repo: https://github.com/PyCQA/isort
-    rev: 5.12.0
-    hooks:
-    - id: isort
-      args: ["--profile", "black"]
 -   repo: https://github.com/pre-commit/mirrors-mypy
     rev: v1.0.1
     hooks:
     - id: mypy
--   repo: https://github.com/PyCQA/pylint
-    rev: v2.16.2
-    hooks:
-    - id: pylint
--   repo: https://github.com/asottile/pyupgrade
-    rev: v3.3.1
-    hooks:
-    - id: pyupgrade
-      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 db01d4a4..23e2a263 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -41,14 +41,5 @@ classifiers = [
     "Natural Language :: English"
 ]
 
-[tool.isort]
-profile = "black"
-src_paths = ["silkaj", "tests"]
-
 [tool.mypy]
 ignore_missing_imports = true
-
-[tool.pylint.messages_control]
-disable = "C,E0401,E1120,R0801,R0913,W0613"
-enable = "C0121,C0202,C0321"
-jobs = 0
-- 
GitLab