summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
AgeCommit message (Collapse)Author
2020-05-11Rename scripts/ directory to tools/Jan Holthuis
We also have a "script" directory (without the "s"), which makes it confusing and harder to select the correct directory with shell completion. The "tools" name fits better, since the directory contains tools that are/were helpful during mixxx development (these tools are all scripts - but that is of secondary importance and also coincidence).
2020-04-30pre-commit: Ignore test dataJan Holthuis
2020-04-06pre-commit: Rename line_length to line-length for consistencyJan Holthuis
2020-03-29use underscore instead of dashDaniel Schürmann
2020-03-29Added line-length.py to call clang-format for lines > 100 onlyDaniel Schürmann
2020-03-26pre-commit: Install clang-format dependency automaticallyJan Holthuis
2020-03-20Require non-specific python3 for pre-commitsOwen Williams
2020-03-19Use python 3.7 style for checking scriptsOwen Williams
2020-02-26pre-commit: Do not run `git clang-format` in parallelJan Holthuis
Running `git clang-format` in parallel (when multiple files have been changed) can cause issues because `.git/index.lock` already exists.
2020-02-11pre-commit: Make sure that flake8 linter runs after black formatterJan Holthuis
2020-02-11pre-commit: Restrict python hooks to scripts/ directoryJan Holthuis
2020-02-04Merge branch 'master' of github.com:mixxxdj/mixxx into pre-commit-pythonJan Holthuis
2020-02-04pre-commit: Improve hook install instructionsJan Holthuis
2020-02-04pre-commit: Add hint regarding the required Python version to commentJan Holthuis
2020-02-03pre-commit: Add linting and autoformatting for pythonJan Holthuis
2020-02-03pre-commit: Add comment with usage instructions to config fileJan Holthuis
2020-02-03pre-commit: Use git clang-format instead of plain clang-formatJan Holthuis
2020-01-25pre-commit: Order hooks alphabetically in config fileJan Holthuis
2020-01-25pre-commit: Exclude lib/ directory from checks globallyJan Holthuis
2020-01-25pre-commit: Exclude MSVC files from check-byte-order-marker hookJan Holthuis
2020-01-25pre-commit: Also report unused eslint-disable directivesJan Holthuis
2020-01-25pre-commit: Remove useless additional_dependencies for eslintJan Holthuis
2020-01-25pre-commit: Enable check-merge-conflict hookJan Holthuis
2020-01-24Add pre-commit configJan Holthuis
This adds a configuration for the pre-commit framework, a simple way to manage, install and run git hooks to catch common problems early on. See https://pre-commit.com/ for details. This adds the following hooks: - check-case-conflict - check-byte-order-marker - check-yaml - check-json - check-xml - mixed-line-ending - end-of-file-fixer - trailing-whitespace - no-commit-to-branch - eslint - clang-format - qsscheck If you have python and python-pip installed, just run: $ pip install --user pre-commit $ git clone https://github.com/mixxxdj/mixxx.git $ cd mixxx $ pre-commit install $ pre-commit install -t pre-push It will now run relevant hooks automatically on every `git commit` or `git push` in the mixxx git repository. If you have a problems with a particular hook, you can use the `$SKIP` environment variable to disable hooks: $ SKIP=clang-format,end-of-file-fixer git commit This can also be used to separate logic changes and autoformatting into two subsequent commits. Using the `$SKIP` var is preferable to using `git commit --no-verify` because it won't prevent catching other, unrelated issues.