-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 e5a570a)
- Loading branch information
Showing
4 changed files
with
75 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,61 @@ | ||
<profile version="1.0"> | ||
<option name="myName" value="Pyfa" /> | ||
<inspection_tool class="IgnoreUnusedEntry" enabled="false" level="UNUSED ENTRY" enabled_by_default="false" /> | ||
<inspection_tool class="InconsistentLineSeparators" enabled="true" level="ERROR" enabled_by_default="true" /> | ||
<inspection_tool class="ProblematicWhitespace" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyBehaveInspection" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyClassicStyleClassInspection" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true"> | ||
<option name="ourVersions"> | ||
<value> | ||
<list size="1"> | ||
<item index="0" class="java.lang.String" itemvalue="2.7" /> | ||
<profile version="1.0"> | ||
<option name="myName" value="Pyfa" /> | ||
<inspection_tool class="IgnoreUnusedEntry" enabled="false" level="UNUSED ENTRY" enabled_by_default="false" /> | ||
<inspection_tool class="InconsistentLineSeparators" enabled="true" level="ERROR" enabled_by_default="true" /> | ||
<inspection_tool class="ProblematicWhitespace" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyBehaveInspection" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyClassicStyleClassInspection" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true"> | ||
<option name="ourVersions"> | ||
<value> | ||
<list size="1"> | ||
<item index="0" class="java.lang.String" itemvalue="2.7" /> | ||
</list> | ||
</value> | ||
</option> | ||
</inspection_tool> | ||
<inspection_tool class="PyMissingTypeHintsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true"> | ||
<option name="ignoredPackages"> | ||
<value> | ||
<list size="1"> | ||
<item index="0" class="java.lang.String" itemvalue="wxPython" /> | ||
</list> | ||
</value> | ||
</option> | ||
</inspection_tool> | ||
<inspection_tool class="PyPep8Inspection" enabled="true" level="TYPO" enabled_by_default="true"> | ||
<option name="ignoredErrors"> | ||
<list> | ||
<option value="E203" /> | ||
<option value="E127" /> | ||
<option value="E128" /> | ||
<option value="E126" /> | ||
</list> | ||
</value> | ||
</option> | ||
</inspection_tool> | ||
<inspection_tool class="PyMissingTypeHintsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true"> | ||
<option name="ignoredPackages"> | ||
<value> | ||
<list size="1"> | ||
<item index="0" class="java.lang.String" itemvalue="wxPython" /> | ||
</option> | ||
</inspection_tool> | ||
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="TYPO" enabled_by_default="true"> | ||
<option name="ignoredErrors"> | ||
<list> | ||
<option value="N802" /> | ||
<option value="N806" /> | ||
<option value="N803" /> | ||
<option value="N814" /> | ||
</list> | ||
</value> | ||
</option> | ||
</inspection_tool> | ||
<inspection_tool class="PyPep8Inspection" enabled="true" level="TYPO" enabled_by_default="true"> | ||
<option name="ignoredErrors"> | ||
<list> | ||
<option value="E203" /> | ||
<option value="E127" /> | ||
<option value="E128" /> | ||
<option value="E126" /> | ||
</list> | ||
</option> | ||
</inspection_tool> | ||
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="TYPO" enabled_by_default="true"> | ||
<option name="ignoredErrors"> | ||
<list> | ||
<option value="N802" /> | ||
<option value="N806" /> | ||
<option value="N803" /> | ||
<option value="N814" /> | ||
</list> | ||
</option> | ||
</inspection_tool> | ||
<inspection_tool class="PyShadowingBuiltinsInspection" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyShadowingNamesInspection" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false"> | ||
<option name="processCode" value="true" /> | ||
<option name="processLiterals" value="true" /> | ||
<option name="processComments" value="true" /> | ||
</inspection_tool> | ||
</profile> | ||
</option> | ||
</inspection_tool> | ||
<inspection_tool class="PyShadowingBuiltinsInspection" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyShadowingNamesInspection" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true"> | ||
<option name="ignoredIdentifiers"> | ||
<list> | ||
<option value="_" /> | ||
</list> | ||
</option> | ||
</inspection_tool> | ||
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false"> | ||
<option name="processCode" value="true" /> | ||
<option name="processLiterals" value="true" /> | ||
<option name="processComments" value="true" /> | ||
</inspection_tool> | ||
</profile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters