Skip to content

Commit

Permalink
Revert "Add python pre-commit tools"
Browse files Browse the repository at this point in the history
This reverts commit 12a2e7b.
  • Loading branch information
vladbogo authored and fauust committed Jul 2, 2024
1 parent e926cfb commit 3c8df5c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 32 deletions.
36 changes: 10 additions & 26 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)^(
Expand All @@ -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]
Expand All @@ -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
Expand Down
11 changes: 5 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3c8df5c

Please sign in to comment.