Skip to content

Commit

Permalink
Merge pull request #26 from zopefoundation/fix-lint
Browse files Browse the repository at this point in the history
Fix linting issues
  • Loading branch information
dataflake authored May 15, 2020
2 parents 17358d6 + 060399f commit b62e188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Shared/DC/ZRDB/tests/testArgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_dict_getters(self):
args = self._makeOne({'arg1': {'type': 'string', 'default': 'n/a'}},
['arg1'])
self.assertIn('arg1', args)
self.assertTrue(args.has_key('arg1')) # NOQA: flake8: W601
self.assertTrue('arg1' in args)
self.assertDictEqual(args['arg1'],
{'default': 'n/a', 'type': 'string'})
self.assertEqual(args.keys(), ['arg1'])
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ commands_pre =
mkdir -p {toxinidir}/parts/lint
commands =
isort --check-only --diff --recursive {toxinidir}/src setup.py
- flake8 --format=html src tests setup.py
flake8 src tests setup.py
- flake8 --format=html src setup.py
flake8 src setup.py
deps =
isort
flake8
Expand Down

0 comments on commit b62e188

Please sign in to comment.