Skip to content

Commit a2915ed

Browse files
Updated files with 'repo_helper'.
1 parent 5cc09ac commit a2915ed

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ repos:
1818
- id: check-added-large-files
1919
- id: check-ast
2020
- id: fix-byte-order-marker
21-
- id: check-byte-order-marker
2221
- id: check-case-conflict
2322
- id: check-executables-have-shebangs
2423
- id: check-json
@@ -85,9 +84,11 @@ repos:
8584
hooks:
8685
- id: formate
8786
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
87+
additional_dependencies:
88+
- formate-trailing-commas>=0.1.0
8889

8990
- repo: https://github.com/python-coincidence/dep_checker
90-
rev: v0.8.0
91+
rev: v0.9.0
9192
hooks:
9293
- id: dep_checker
9394
args:

.style.yapf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ split_before_dict_set_generator=True
312312
#
313313
# foo = ('This is a really long string: {}, {}, {}, {}'
314314
# .format(a, b, c, d))
315-
split_before_dot=False
315+
split_before_dot=True
316316

317317
# Split after the opening paren which surrounds an expression if it doesn't
318318
# fit on a single line.

formate.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ priority = 30
1212
[hooks.yapf.kwargs]
1313
yapf_style = ".style.yapf"
1414

15+
[hooks.trailing_commas]
16+
priority = 21
17+
18+
[hooks.trailing_commas.kwargs]
19+
format_ImportFrom = false
20+
1521
[hooks.isort]
1622
priority = 50
1723

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ deps =
123123
flake8-strftime>=0.1.1
124124
flake8-typing-imports>=1.10.0
125125
flake8-params>=0.1.0
126-
git+https://github.com/python-formate/flake8-commas.git@2.1.0-python-formate.0
126+
git+https://github.com/python-formate/flake8-commas.git@4.0.0-python-formate.0
127127
git+https://github.com/domdfcoding/restructuredtext-lint.git@fix-deprecations
128128
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
129129
git+https://github.com/domdfcoding/flake8-rst-docstrings.git

0 commit comments

Comments
 (0)