From 053db4672034562755ff6a34b64e2dff22be8d93 Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Thu, 13 Oct 2016 11:31:58 -0700 Subject: [PATCH] Formatting changes As per @Regner --- eos/const/eve.py | 6 ++--- .../register/holder_class.py | 24 ++++++++++++------- .../register/ship_type_group.py | 4 ++-- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/eos/const/eve.py b/eos/const/eve.py index b58683fe..73a499c1 100644 --- a/eos/const/eve.py +++ b/eos/const/eve.py @@ -33,7 +33,7 @@ class Attribute(IntEnum): # This is a static mapping of data from dmgattribs # if attribs are added/updated, this will have to be manually changed - + mass = 4 hp = 9 power_output = 11 @@ -105,7 +105,7 @@ class Attribute(IntEnum): required_skill_5 = 1289 required_skill_6 = 1290 - #Ship Groups + # Ship Groups can_fit_ship_group_1 = 1298 can_fit_ship_group_2 = 1299 can_fit_ship_group_3 = 1300 @@ -117,7 +117,7 @@ class Attribute(IntEnum): can_fit_ship_group_9 = 2065 can_fit_ship_group_10 = 2396 - #Ship Types + # Ship Types can_fit_ship_type_1 = 1302 can_fit_ship_type_2 = 1303 can_fit_ship_type_3 = 1304 diff --git a/eos/fit/restriction_tracker/register/holder_class.py b/eos/fit/restriction_tracker/register/holder_class.py index 86867303..4e482751 100644 --- a/eos/fit/restriction_tracker/register/holder_class.py +++ b/eos/fit/restriction_tracker/register/holder_class.py @@ -49,23 +49,31 @@ Attribute.implantness in item.attributes ), ModuleHigh: lambda item: ( - (item.category == Category.module or - item.category == Category.structureModule) and + ( + item.category == Category.module or + item.category == Category.structureModule + ) and Slot.module_high in item.slots ), ModuleMed: lambda item: ( - (item.category == Category.module or - item.category == Category.structureModule) and + ( + item.category == Category.module or + item.category == Category.structureModule + ) and Slot.module_med in item.slots ), ModuleLow: lambda item: ( - (item.category == Category.module or - item.category == Category.structureModule) and + ( + item.category == Category.module or + item.category == Category.structureModule + ) and Slot.module_low in item.slots ), Rig: lambda item: ( - (item.category == Category.module or - item.category == Category.structureModule) and + ( + item.category == Category.module or + item.category == Category.structureModule + ) and Slot.rig in item.slots ), Ship: lambda item: ( diff --git a/eos/fit/restriction_tracker/register/ship_type_group.py b/eos/fit/restriction_tracker/register/ship_type_group.py index 4392ddcd..74059861 100644 --- a/eos/fit/restriction_tracker/register/ship_type_group.py +++ b/eos/fit/restriction_tracker/register/ship_type_group.py @@ -36,7 +36,7 @@ Attribute.can_fit_ship_type_5, Attribute.can_fit_ship_type_6, Attribute.can_fit_ship_type_7, - Attribute.fits_to_shiptype + Attribute.fits_to_shiptype, ) GROUP_RESTRICTION_ATTRS = ( Attribute.can_fit_ship_group_1, @@ -48,7 +48,7 @@ Attribute.can_fit_ship_group_7, Attribute.can_fit_ship_group_8, Attribute.can_fit_ship_group_9, - Attribute.can_fit_ship_group_10 + Attribute.can_fit_ship_group_10, )