Skip to content
Snippets Groups Projects
Commit a0f90a44 authored by Moul's avatar Moul
Browse files

Remove autoflake, isort, pylint, pyupgrade (#458)

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

will be replaced with ruff
parent 6181b8e7
No related branches found
No related tags found
1 merge request!234Introduce Ruff pre-commit hook to replace autoflake, pylint, isort and pyupgrade (#458)
[flake8]
max-line-length = 101
inline-quotes = "
...@@ -48,14 +48,6 @@ build: ...@@ -48,14 +48,6 @@ build:
paths: paths:
- ${PRE_COMMIT_HOME} - ${PRE_COMMIT_HOME}
autoflake:
extends:
- .code_changes
- .pre-commit
stage: checks
script:
- pre-commit run -a autoflake
format: format:
extends: extends:
- .code_changes - .code_changes
...@@ -64,14 +56,6 @@ format: ...@@ -64,14 +56,6 @@ format:
script: script:
- pre-commit run -a black - pre-commit run -a black
isort:
extends:
- .code_changes
- .pre-commit
stage: checks
script:
- pre-commit run -a isort
mypy: mypy:
extends: extends:
- .code_changes - .code_changes
...@@ -80,22 +64,6 @@ mypy: ...@@ -80,22 +64,6 @@ mypy:
script: script:
- pre-commit run -a mypy - 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: pre-commit:hooks:
extends: extends:
- .doc_changes - .doc_changes
......
...@@ -10,39 +10,14 @@ repos: ...@@ -10,39 +10,14 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: mixed-line-ending - id: mixed-line-ending
- id: trailing-whitespace - 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 - repo: https://github.com/psf/black
rev: 23.1.0 rev: 23.1.0
hooks: hooks:
- id: black - 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 - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1 rev: v1.0.1
hooks: hooks:
- id: mypy - 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 - repo: https://gitlab.com/devopshq/gitlab-ci-linter
rev: v1.0.3 rev: v1.0.3
hooks: hooks:
......
...@@ -41,14 +41,5 @@ classifiers = [ ...@@ -41,14 +41,5 @@ classifiers = [
"Natural Language :: English" "Natural Language :: English"
] ]
[tool.isort]
profile = "black"
src_paths = ["silkaj", "tests"]
[tool.mypy] [tool.mypy]
ignore_missing_imports = true ignore_missing_imports = true
[tool.pylint.messages_control]
disable = "C,E0401,E1120,R0801,R0913,W0613"
enable = "C0121,C0202,C0321"
jobs = 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment