Commit graph

3 commits

Author SHA1 Message Date
Ben Webber
d889840b88 check-builtin-literals: Appease flake8 with six 2017-12-01 03:04:46 +00:00
Ben Webber
775867626d check-builtin-literals: Ignore function attribute calls 2017-11-30 18:33:36 +00:00
Ben Webber
35996b7a25 Add check to enforce literal syntax for Python builtin types
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.
2017-11-26 00:46:03 +00:00