Added flake8 configuration.

This commit is contained in:
Russell Keith-Magee 2020-10-24 09:59:23 +08:00
parent be0cd35fb6
commit 7551c8c883
No known key found for this signature in database
GPG key ID: 3D2DAB6A37BB5BC3
3 changed files with 13 additions and 1 deletions

11
setup.cfg Normal file
View file

@ -0,0 +1,11 @@
[flake8]
# https://flake8.readthedocs.org/en/latest/
exclude=\
*/.eggs/*,\
*/build/*,\
.tox/*,\
local/*,\
venv*
max-complexity = 25
max-line-length = 119

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
import io import io
from setuptools import find_packages, setup, Extension from setuptools import setup, Extension
with io.open('README.rst', encoding='utf8') as readme: with io.open('README.rst', encoding='utf8') as readme:

View file

@ -2,6 +2,7 @@ import unittest
import spamsum import spamsum
class SpamSumTest(unittest.TestCase): class SpamSumTest(unittest.TestCase):
def setUp(self): def setUp(self):
self.s1 = "I am the very model of a modern Major-General, I've information animal and vegetable and mineral" self.s1 = "I am the very model of a modern Major-General, I've information animal and vegetable and mineral"