Added flake8 configuration.
This commit is contained in:
parent
be0cd35fb6
commit
7551c8c883
3 changed files with 13 additions and 1 deletions
11
setup.cfg
Normal file
11
setup.cfg
Normal 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
|
||||||
2
setup.py
2
setup.py
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue