From 3d9b4c11d4fdac36541646b2e5f4c9c880bf1c7b Mon Sep 17 00:00:00 2001 From: zhaoweny Date: Fri, 19 Jun 2020 22:17:49 -0400 Subject: [PATCH] i18n/zh_CN: reformat code and ignore `_` 1. update `Pyfa_Inspections.xml` to ignore `_` i18n module `gettext` will do a `gettext.install(...)` to put `_` function into `builtin` module. Currently PyCharm does not recognize this as a function and report as unresolved reference. 2. reformat code to remove padding for vertical dicts 3. update `Pyfa_CodeStyle.xml` to not pad vertical dicts (cherry picked from commit e5a570a0078f05fe34c473841af6b7746e06bfca) --- _development/Pyfa_CodeStyle.xml | 1 - _development/Pyfa_Inspections.xml | 111 ++++++++++--------- gui/builtinStatsViews/resistancesViewFull.py | 12 +- gui/builtinStatsViews/resourcesViewFull.py | 20 ++-- 4 files changed, 75 insertions(+), 69 deletions(-) diff --git a/_development/Pyfa_CodeStyle.xml b/_development/Pyfa_CodeStyle.xml index a7980e4df3..121e2b455a 100644 --- a/_development/Pyfa_CodeStyle.xml +++ b/_development/Pyfa_CodeStyle.xml @@ -3,7 +3,6 @@