From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Sun, 13 Jun 2021 17:22:46 +0000 (+0200) Subject: Add EOF and trailing whitespace fixer to pre-commit config (#2330) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/52f402dcfbeb49d4710b2c8d2b15563b08369fc5?ds=inline Add EOF and trailing whitespace fixer to pre-commit config (#2330) --- diff --git a/.gitignore b/.gitignore index da7328c..ab796ce 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,4 @@ src/_black_version.py .dmypy.json *.swp .hypothesis/ -venv/ \ No newline at end of file +venv/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 207766b..be60ff2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,3 +28,9 @@ repos: rev: v2.2.1 hooks: - id: prettier + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.0.1 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace diff --git a/docs/Makefile b/docs/Makefile index 2e0e5ee..cb0463c 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -17,4 +17,4 @@ help: # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/_static/license.svg b/docs/_static/license.svg index 36bea29..25aa18b 100644 --- a/docs/_static/license.svg +++ b/docs/_static/license.svg @@ -1 +1 @@ -licenselicenseMITMIT \ No newline at end of file +licenselicenseMITMIT diff --git a/pyproject.toml b/pyproject.toml index 4d6777e..79060fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,4 +31,4 @@ build-backend = "setuptools.build_meta" optional-tests = [ "no_python2: run when `python2` extra NOT installed", "no_blackd: run when `d` extra NOT installed", -] \ No newline at end of file +] diff --git a/src/black/py.typed b/src/black/py.typed index 8b13789..e69de29 100644 --- a/src/black/py.typed +++ b/src/black/py.typed @@ -1 +0,0 @@ - diff --git a/tests/test.toml b/tests/test.toml index 405c00c..570c2f2 100644 --- a/tests/test.toml +++ b/tests/test.toml @@ -7,4 +7,3 @@ line-length = 79 target-version = ["py36", "py37", "py38"] exclude='\.pyi?$' include='\.py?$' -