mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-01 10:56:52 +00:00
This check requires authors to initialize empty or zero builtin types
using the literal syntax (e.g., `{}` instead of `dict()`).
Authors may ignore this requirement for certain builtins using the
`--ignore` option.
Authors may also forbid calling `dict()` with keyword arguments
(`dict(a=1, b=2)`) using the `--no-allow-dict-kwargs` flag.
7 lines
56 B
Python
7 lines
56 B
Python
c1 = 0j
|
|
d1 = {}
|
|
f1 = 0.0
|
|
i1 = 0
|
|
l1 = []
|
|
s1 = ''
|
|
t1 = ()
|