mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-12 10:20:08 -04:00
Merge pull request #7547 from sashadev-sky/issue-7476-1.2
Added pre-commit for linting purposes. Fixes #7476
This commit is contained in:
commit
1d4a7803dd
3 changed files with 14 additions and 0 deletions
6
.pre-commit-config.yaml
Normal file
6
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 6.0.0
|
||||
hooks:
|
||||
- id: flake8
|
||||
files: '(src|scripts|conftest.py)'
|
||||
|
|
@ -164,6 +164,13 @@ virtual env and run::
|
|||
pip install -r requirements.d/development.txt
|
||||
|
||||
|
||||
This project utilizes pre-commit to lint code before it is committed.
|
||||
Although pre-commit is installed when running the command above, the pre-commit hooks
|
||||
will have to be installed separately. Run this command to install the pre-commit hooks::
|
||||
|
||||
pre-commit install
|
||||
|
||||
|
||||
Running the tests
|
||||
-----------------
|
||||
|
||||
|
|
|
|||
|
|
@ -11,3 +11,4 @@ pytest-benchmark
|
|||
Cython
|
||||
twine
|
||||
python-dateutil
|
||||
pre-commit
|
||||
|
|
|
|||
Loading…
Reference in a new issue