8000 Add EOF and trailing whitespace fixer to pre-commit config (#2330) · IBMZ-Linux-OSS-Python/black@52f402d · GitHub
[go: up one dir, main page]

Skip to content

Commit 52f402d

Browse files
authored
Add EOF and trailing whitespace fixer to pre-commit config (psf#2330)
1 parent e2fd914 commit 52f402d

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ src/_black_version.py
1717
.dmypy.json
1818
*.swp
1919
.hypothesis/
20-
venv/
20+
venv/

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ repos:
2828
rev: v2.2.1
2929
hooks:
3030
- id: prettier
31+
32+
- repo: https://github.com/pre-commit/pre-commit-hooks
33+
rev: v4.0.1
34+
hooks:
35+
- id: end-of-file-fixer
36+
- id: trailing-whitespace

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ help:
1717
# Catch-all target: route all unknown targets to Sphinx using the new
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/_static/license.svg

Lines changed: 1 addition & 1 deletion
Loading

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ build-backend = "setuptools.build_meta"
3131
optional-tests = [
3232
"no_python2: run when `python2` extra NOT installed",
3333
"no_blackd: run when `d` extra NOT installed",
34-
]
34+
]

src/black/py.typed

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

tests/test.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ line-length = 79
77
target-version = ["py36", "py37", "py38"]
88
exclude='\.pyi?$'
99
include='\.py?$'
10-

0 commit comments

Comments
 (0)
0