From f9959605287b5ed5ef20ac6cfe630ceaf279695a Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 13 Oct 2021 11:25:38 +0200 Subject: [PATCH] remove pre commit, no longer needed --- .pre-commit-config.yaml | 31 ------------------------------- docs/contribute.md | 9 --------- 2 files changed, 40 deletions(-) delete mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index ea21d86c7..000000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,31 +0,0 @@ -# See https://pre-commit.com for more information -# See https://pre-commit.com/hooks.html for more hooks -repos: - - repo: local - hooks: - - id: pre-commit-yarn-build - name: Build javascript files - entry: yarn --cwd ./vue build - always_run: true - language: system - types: [ python ] - pass_filenames: false - -#- id: pre-commit-django-migrations -# name: Check django migrations -# entry: bash -c './venv/bin/activate && ./manage.py makemigrations --check' -# language: system -# types: [ python ] -# pass_filenames: false -# - id: pre-commit-django-make-messages -# name: Make messages if necessary -# entry: ./manage.py makemessages -i venv -a -# language: system -# types: [ python ] -# pass_filenames: false -# - id: pre-commit-django-compile-messages -# name: Compile messages if necessary -# entry: ./manage.py compilemessages -i venv -# language: system -# types: [ python ] -# pass_filenames: false \ No newline at end of file diff --git a/docs/contribute.md b/docs/contribute.md index 42eda3a04..1c6a0242a 100644 --- a/docs/contribute.md +++ b/docs/contribute.md @@ -49,15 +49,6 @@ Navigate to `vue/src/utils/openapi`. Generate the schema using `openapi-generator-cli generate -g typescript-axios -i http://127.0.0.1:8000/openapi/` (replace your dev server url if required) -### Pre-Commit -Some checks and scripts can be automatically run using [pre-commit](https://pre-commit.com/). - -The scripts are configured in the `pre-commit-config.yaml`. To setup the hooks on your development environment install -pre commit using `pip install pre-commit` and run `pre-commit install` to setup the hooks. - -To manually test all hooks (and ignore if files have changed) use `pre-commit run --all-files` - - ## Contribute Documentation The documentation is build from the markdown files in the [docs](https://github.com/vabene1111/recipes/tree/develop/docs) folder of the GitHub repository.