🎨 Add codemods to pre-commit, fix flake8

This commit is contained in:
Gina Häußge committed 2020-10-07 16:27:11 +02:00
1 parent 6d6671c2a1
commit b5be8f3eae
107 files changed
+1149 -1160

No files matched your search

@@ -10,84 +10,84 @@ import ddt
class NotificationFilterTest(unittest.TestCase):
@ddt.data(
(
dict(plugin="foo", text="text", date="2020-09-15 00:00:00Z"),
{"plugin": "foo", "text": "text", "date": "2020-09-15 00:00:00Z"},
"1.0.0",
"1.5.0",
True,
),
(
dict(
plugin="foo",
text="text",
date="2020-09-15 00:00:00Z",
pluginversions=[">=1.0.0"],
),
{
"plugin": "foo",
"text": "text",
"date": "2020-09-15 00:00:00Z",
"pluginversions": [">=1.0.0"],
},
"1.0.0",
"1.5.0",
True,
),
(
dict(
plugin="foo",
text="text",
date="2020-09-15 00:00:00Z",
pluginversions=[">=2.0.0", "0.9.0", "0.9.1", "1.0.0"],
),
{
"plugin": "foo",
"text": "text",
"date": "2020-09-15 00:00:00Z",
"pluginversions": [">=2.0.0", "0.9.0", "0.9.1", "1.0.0"],
},
"1.0.0",
"1.5.0",
True,
),
(
dict(
plugin="foo",
text="text",
date="2020-09-15 00:00:00Z",
pluginversions=[">=2.0.0", "0.9.0", "0.9.1", "1.0.0"],
),
{
"plugin": "foo",
"text": "text",
"date": "2020-09-15 00:00:00Z",
"pluginversions": [">=2.0.0", "0.9.0", "0.9.1", "1.0.0"],
},
"1.1.0",
"1.5.0",
False,
),
(
dict(
plugin="foo",
text="text",
date="2020-09-15 00:00:00Z",
versions=["0.9.0", "0.9.1", "1.0.0", "1.0.1"],
),
{
"plugin": "foo",
"text": "text",
"date": "2020-09-15 00:00:00Z",
"versions": ["0.9.0", "0.9.1", "1.0.0", "1.0.1"],
},
"1.0.0",
"1.5.0",
True,
),
(
dict(
plugin="foo",
text="text",
date="2020-09-15 00:00:00Z",
versions=["0.9.0", "0.9.1", "1.0.0", "1.0.1"],
),
{
"plugin": "foo",
"text": "text",
"date": "2020-09-15 00:00:00Z",
"versions": ["0.9.0", "0.9.1", "1.0.0", "1.0.1"],
},
"1.1.0",
"1.5.0",
False,
),
(
dict(
plugin="foo",
text="text",
date="2020-09-15 00:00:00Z",
octoversions=["1.5.0"],
),
{
"plugin": "foo",
"text": "text",
"date": "2020-09-15 00:00:00Z",
"octoversions": ["1.5.0"],
},
"1.0.0",
"1.5.0",
True,
),
(
dict(
plugin="foo",
text="text",
date="2020-09-15 00:00:00Z",
octoversions=["==1.4.2"],
),
{
"plugin": "foo",
"text": "text",
"date": "2020-09-15 00:00:00Z",
"octoversions": ["==1.4.2"],
},
"1.0.0",
"1.5.0",
False,