Ran flake8 and black linters, and other cleanup-related fixes.

Project now passes flake8 and black linter (also including more rst
cleanup). Moved latex related things to dedicated ``latex.py`` module,
and removed the ``makesheets -dF`` call from travis.
This commit is contained in:
Mark Wolfman
2021-04-16 11:10:17 -05:00
parent 9dfc02f3df
commit 30369ce1d4
81 changed files with 7668 additions and 4936 deletions
+4 -4
View File
@@ -2,17 +2,17 @@ class Infusion:
name = "Unknown infusion"
item = "Item to be infused"
prerequisite = ""
classes = ('Artificer',)
classes = ("Artificer",)
def __str__(self):
indicator = ('$', self.special_material)
indicator = ("$", self.special_material)
if indicator:
return self.name + f' ({"".join(indicator)})'
else:
return self.name
def __repr__(self):
return "\"{:s}\"".format(self.name)
return '"{:s}"'.format(self.name)
def __eq__(self, other):
return self.name == other.name
@@ -22,7 +22,7 @@ class Infusion:
@property
def special_material(self):
return 'worth at least' in self.item.lower()
return "worth at least" in self.item.lower()
class BootsOfTheWindingPath(Infusion):