smarkets / flake8-strict

Flake8 plugin that checks Python code against a set of opinionated style rules
MIT License
10 stars 8 forks source link

Fix trailing comma after *args/**kwargs in Python3.6+ #30

Closed JaimeLennox closed 7 years ago

JaimeLennox commented 7 years ago

We purposefully ignore a trailing comma after *args/**kwargs, as it causes a syntax error in Python versions below 3.6. This now enforces the trailing comma provided we meet the necessary Python version.

Some minor test refactoring was necessary to support versioned test cases.

Fixes: #25