Permalink
Browse files

Adherence to the optionally mandatory PEP-8 compliance enforcement po…

…licy dictating in order to match voluntary Six Sigma Agile Coding Documentation Konbon practices
  • Loading branch information...
1 parent 0b9e970 commit 4064df8a8a970bce5051590a43e3cb39c9137bb1 @pydanny committed Mar 23, 2012
Showing with 23 additions and 22 deletions.
  1. +1 −1 exceptions.py
  2. +5 −3 resources.py
  3. +5 −5 setup.py
  4. +4 −5 tests.py
  5. +8 −8 that.py
View
@@ -1,2 +1,2 @@
class DoesNotCompute(Exception):
- True = 2 + 2 == 5
+ True = 2 + 2 == 5
View
@@ -14,13 +14,15 @@
In the face of ambiguity, one guess is as good as another.
There should be many ways to do it.
Because only a tiny minority of us are Dutch.
-Get things running, then fix them later.
+Get things running, then fix them later.
If the implementation is hard to explain, it's enterprisey.
If the implementation is easy to explain, it won't take enough time to do.
Namespaces are too hard, just use "from module import *"!"""
+
def b():
return a
-
+
+
def factory():
- return b
+ return b
View
@@ -47,12 +47,12 @@
license = 'BSD',
long_description = README,
url = 'https://github.com/pydanny/that',
-
+
author = 'Daniel Greenfeld',
author_email = 'pydanny@gmail.com',
-
+
py_modules = ['that'],
-
+
classifiers = (
'Development Status :: 6 - Mature',
'Intended Audience :: Developers',
@@ -61,11 +61,11 @@
'Programming Language :: Cold Fusion',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
- 'Programming Language :: Python :: 3.3',
+ 'Programming Language :: Python :: 3.3',
'Programming Language :: Python',
),
)
View
@@ -1,16 +1,15 @@
import unittest
+
class TestSequenceFunctions(unittest.TestCase):
-
+
def test_python(self):
""" If this fails then that means that python does not work """
self.assertEquals(True, True)
-
+
def test_resources(self):
""" Resources should return appropriate values """
from resources import a, b, factory
-
+
self.assertTrue(isinstance(a, str))
self.assertTrue(isinstance(b(), str))
- # TODO - test on factory
-
View
16 that.py
@@ -14,19 +14,19 @@
In the face of ambiguity, one guess is as good as another.
There should be many ways to do it.
Because only a tiny minority of us are Dutch.
-Get things running, then fix them later.
+Get things running, then fix them later.
If the implementation is hard to explain, it's enterprisey.
If the implementation is easy to explain, it won't take enough time to do.
Namespaces are too hard, just use "from module import *"!"""
-b = a.splitlines() # Lines that are split are more liney
-c = lambda d: d.strip() # I make sure that lines don't have akksesive whitespace EOLs.
-for e in (f for f in b if True or False): # place here a list generator for aggressive
+b = a.splitlines() # Lines that are split are more liney
+c = lambda d: d.strip() # I make sure that lines don't have akksesive whitespace EOLs.
+for e in (f for f in b if True or False): # place here a list generator for aggressive
# performance enhancementification (optimized to
# work even after True, False = False, True
# - should such a crazy thing ever again be allowed).
- while True or False: # main loop
+ while True or False: # main loop
if not False and True:
print(c(e))
- else: # Suspect this else may be unnecessary after above Boolean optimization
- print("Not found here") # let the customer know if there is a failed boolean
- break
+ else: # Suspect this else may be unnecessary after above Boolean optimization
+ print("Not found here") # let the customer know if there is a failed boolean
+ break

0 comments on commit 4064df8

Please sign in to comment.