From 3c8df5c0309a59ae4c094628dc65f5c80b1387fe Mon Sep 17 00:00:00 2001 From: Vlad Bogolin Date: Fri, 21 Jun 2024 15:53:19 +0300 Subject: [PATCH] Revert "Add python pre-commit tools" This reverts commit 12a2e7b4c99317683e3992e7d17cdfaac5400153. --- .pre-commit-config.yaml | 36 ++++++++++-------------------------- requirements.txt | 11 +++++------ 2 files changed, 15 insertions(+), 32 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4afb4d4..abbec409 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,11 +12,11 @@ repos: - id: check-symlinks - id: check-xml - id: check-yaml - name: check yaml files + name: Check yaml files - id: debug-statements - name: check for Python debug statements + name: Check for Python debug statements - id: trailing-whitespace - name: check trailing whitespace + name: Check trailing whitespace args: [--markdown-linebreak-ext=md] exclude: | (?x)^( @@ -26,38 +26,38 @@ repos: # rev: 3.9.2 # hooks: # - id: flake8 - # name: check python (flake8) + # name: Check python (flake8) - repo: https://github.com/adrienverge/yamllint.git rev: v1.35.1 hooks: - id: yamllint - name: check yaml files (yamllint) + name: Check yaml files (yamllint) - repo: https://github.com/fauust/pre-commit-shell rev: v1.1 hooks: - id: shellcheck - name: check shell script (shellcheck) + name: Check shell script (shellcheck) args: ["-x"] # - id: shfmt - # name: check shell style (shfmt) + # name: Check shell style (shfmt) # args: ["-d", "-i", "2", "-ci"] - repo: https://github.com/markdownlint/markdownlint rev: v0.12.0 hooks: - id: markdownlint - name: check for markdown lint (mdl) + name: Check for markdown lint (mdl) - repo: https://github.com/codespell-project/codespell rev: v2.2.6 hooks: - id: codespell - name: check for common misspellings in text files + name: Checks for common misspellings in text files entry: codespell language: python - repo: https://github.com/PyCQA/pylint.git rev: v3.1.0 hooks: - id: pylint - name: check python syntax (pylint) + name: Check python (pylint) entry: pylint language: system types: [file] @@ -71,22 +71,6 @@ repos: "--rcfile=.pylintrc", # Config file "--disable=django-not-configured", # Silence django warning ] - - repo: https://github.com/psf/black - rev: 24.4.2 - hooks: - - id: black - name: check python formating (black) - - repo: https://github.com/asottile/pyupgrade - rev: v3.15.2 - hooks: - - id: pyupgrade - name: check python syntax (pyupgrade) - args: [--py38-plus] - - repo: https://github.com/pycqa/isort - rev: 5.13.2 - hooks: - - id: isort - name: check python imports order (isort) - repo: local hooks: - id: docker-hadolint diff --git a/requirements.txt b/requirements.txt index 0df431cd..8fad62f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,15 +1,14 @@ -#libmariadb-dev not available on Alpine Linux so far -#mysqlclient -black buildbot-prometheus buildbot-worker -django docker==4.3.1 flask libvirt-python -pylint -pylint-django +#libmariadb-dev not available on Alpine Linux so far +#mysqlclient python-dotenv pyzabbix sqlalchemy==1.3.23 treq +pylint +pylint-django +django