for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import os
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
class SomeClass: def some_method(self): """Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.
class ImageStore:
LATEST = "latest.jpg"
def __init__(self, root):
self.root = root
@property
def latest(self):
return os.path.join(self.root, self.LATEST)
def exists(self, image):
image.root = self.root
return os.path.isfile(image.path)
def create(self, image):
image.generate()
try:
os.remove(self.latest)
except IOError:
pass
os.symlink(image.path, self.latest)
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.