We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17f285e commit 52a765eCopy full SHA for 52a765e
README.rst
@@ -49,7 +49,7 @@ If you prefer linting changed files (cached on git) you can use the option
49
50
.. code-block:: bash
51
52
- git diff | relint my_file.py --diff
+ git diff --unified=0 | relint my_file.py --diff
53
54
This option is useful for pre-commit purposes. Here an example of how to use it
55
with `pre-commit`_ framework:
relint-pre-commit.sh
@@ -1,4 +1,4 @@
1
#!/usr/bin/env bash
2
3
set -eo pipefail
4
-git diff --staged | relint --diff -W "${@:1}"
+git diff --staged --unified=0 | relint --diff -W "${@:1}"
0 commit comments