extract pycharm community resources
@@ -0,0 +1,68 @@
|
||||
<?xml version='1.0'?>
|
||||
<list>
|
||||
<option name="MAKO.SUBSTITUTION">
|
||||
<value>
|
||||
<option name="BACKGROUND" value="232364" />
|
||||
<option name="EFFECT_TYPE" value="-1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="MAKO.TAG">
|
||||
<value>
|
||||
<option name="EFFECT_TYPE" value="-1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.CLASS_DEFINITION">
|
||||
<value>
|
||||
<option name="FONT_TYPE" value="1" />
|
||||
<option name="EFFECT_TYPE" value="1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.DECORATOR">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="bbb529" />
|
||||
<option name="EFFECT_TYPE" value="1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.FUNC_DEFINITION">
|
||||
<value>
|
||||
<option name="FONT_TYPE" value="1" />
|
||||
<option name="EFFECT_TYPE" value="1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.KEYWORD">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="cc7832" />
|
||||
<option name="FONT_TYPE" value="1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.KEYWORD_ARGUMENT">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="aa4926" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.PREDEFINED_DEFINITION">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="B200B2" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.PREDEFINED_USAGE">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="B200B2" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.SELF_PARAMETER">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="94558D" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.STRING.B">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="a5c261" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.STRING.U">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="008080" />
|
||||
</value>
|
||||
</option>
|
||||
</list>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version='1.0'?>
|
||||
<list>
|
||||
<option name="MAKO.SUBSTITUTION">
|
||||
<value>
|
||||
<option name="BACKGROUND" value="E6E6FA" />
|
||||
<option name="EFFECT_TYPE" value="-1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="MAKO.TAG">
|
||||
<value>
|
||||
<option name="EFFECT_TYPE" value="-1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.BUILTIN_NAME">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="80" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.CLASS_DEFINITION">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="000000" />
|
||||
<option name="EFFECT_TYPE" value="1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.DECORATOR">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="0000B2" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.FUNC_DEFINITION">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="000000" />
|
||||
<option name="EFFECT_TYPE" value="1" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.KEYWORD_ARGUMENT">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="660099" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.PREDEFINED_DEFINITION">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="B200B2" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.PREDEFINED_USAGE">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="B200B2" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.SELF_PARAMETER">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="94558D" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="PY.STRING.U">
|
||||
<value>
|
||||
<option name="FOREGROUND" value="008080" />
|
||||
<option name="FONT_TYPE" value="1" />
|
||||
</value>
|
||||
</option>
|
||||
</list>
|
||||
@@ -0,0 +1 @@
|
||||
__author__ = '$USER'
|
||||
@@ -0,0 +1,10 @@
|
||||
__author__ = '$USER'
|
||||
|
||||
import unittest
|
||||
|
||||
class MyTestCase(unittest.TestCase):
|
||||
def test_something(self):
|
||||
self.assertEqual(True, False)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,12 @@
|
||||
from distutils.core import setup
|
||||
|
||||
setup(
|
||||
name='$Package_name',
|
||||
version='$Version',
|
||||
packages=$PackageList,$PackageDirs
|
||||
url='$URL',
|
||||
license='$License',
|
||||
author='$Author',
|
||||
author_email='$Author_Email',
|
||||
description='$Description'
|
||||
)
|
||||
|
After Width: | Height: | Size: 386 B |
|
After Width: | Height: | Size: 1007 B |
|
After Width: | Height: | Size: 324 B |
|
After Width: | Height: | Size: 866 B |
|
After Width: | Height: | Size: 197 B |
|
After Width: | Height: | Size: 224 B |
|
After Width: | Height: | Size: 303 B |
|
After Width: | Height: | Size: 534 B |
|
After Width: | Height: | Size: 499 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 469 B |
|
After Width: | Height: | Size: 880 B |
|
After Width: | Height: | Size: 209 B |
|
After Width: | Height: | Size: 342 B |
|
After Width: | Height: | Size: 204 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 191 B |
|
After Width: | Height: | Size: 265 B |
|
After Width: | Height: | Size: 694 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 700 B |
|
After Width: | Height: | Size: 682 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 682 B |
|
After Width: | Height: | Size: 687 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 668 B |
|
After Width: | Height: | Size: 697 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 628 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 393 B |
|
After Width: | Height: | Size: 981 B |
|
After Width: | Height: | Size: 715 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1020 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 715 B |
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection highlights unresolved buildout parts.
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects when there aren't all abstract properties/methods are defined in subclass
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights situations, where argument passed to function is equal to default parameter value
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection reports discrepancies between declared parameters and actual arguments, as well as
|
||||
incorrect arguments (e.g. duplicate named arguments) and incorrect argument order. Decorators are analyzed, too.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif; font-size: smaller;">
|
||||
This inspection detects instance attribute definition outside __init__ method
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights assignment that can be replaced with augmented assignment.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights too broad exception clauses such as
|
||||
no exception class specified, or specified as 'Exception'.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects characters > 255 in byte literals.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<p style="font-family: verdana,serif;">
|
||||
This inspection checks for calls of a method by class while passing an instance of a different class
|
||||
as <code>self</code> parameter:</p>
|
||||
<pre>
|
||||
foo = Foo()
|
||||
Bar.baz(foo, *more)
|
||||
</pre>
|
||||
<p style="font-family: verdana,serif;">
|
||||
Sometimes this may be intentional and correct.
|
||||
But when unintentional, this leads to subtle bugs.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights attempts to call objects which are not callable, like, for example, tuples.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights chained comparisons that can be simplified.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection used when a class has no __init__ method, neither its parent classes.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">This inspection detects classic style classes usage.</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights comparisons with None. That type of comparisons
|
||||
should always be done with 'is' or 'is not', never the equality operators.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
Enable this inspection if you need your code to be compatible with a range of Python versions (for example, if you're building a library).
|
||||
The range of Python versions with which the code needs to be compatible can be specified in the inspection settings.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<p style="font-family: verdana,serif;">
|
||||
This inspection reports usages of @classmethod or @staticmethod decorators on functions outside of a class.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects when a mutable value as list or dictionary is detected in a default value for an argument.<br/>
|
||||
Default argument values are evaluated only once at function definition time, which means that modifying the
|
||||
default value of the argument will affect all subsequent calls of the function.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlight import statements references a module which is deprecated in current Python version.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif">
|
||||
This inspection highlights usages of Python functions, classes or methods which are marked as deprecated (which raise a
|
||||
DeprecationWarning or a PendingDeprecationWarning).
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">This inspection detects situations when dictionary creation
|
||||
could be rewritten with dictionary literal.</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights using the same value as dictionary key twice.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects mismatched parameters in docstring, lack of docstring and an empty docstring.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection highlights types in docstring which don't match dynamically inferred types.
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights situations when except clauses are not in the correct order
|
||||
(from the more specific to the more generic) or one exception class is caught twice.<br/>
|
||||
If you don't fix the order, some exceptions may not be catched by the most specific handler.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects when a custom exception class is raised but doesn't inherit from the builtin "Exception" class.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects <code>'from __future__ import'</code> statements which are used not in the beginning of a file.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection is used when a variable is defined through the "global" statement but the variable is not defined in the module scope.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">This inspection reports inconsistent indentation in Python source files (for example, use of a mixture
|
||||
of tabs and spaces).
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection checks mutual compatibility of <code>__new__</code> and <code>__init__</code> signatures.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body><span style="font-family: verdana,serif;">
|
||||
This inspection notifies you if the current project has no Python interpreter configured or an invalid Python interpreter.
|
||||
</span></body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects situations when list creation
|
||||
could be rewritten with list literal.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects lack of encoding magic comment for file.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects cases when first parameter, such as 'self' or 'cls', is reassigned in a method.
|
||||
In most cases imaginable, there's no point in such reassignment, and it indicates an error.
|
||||
</span>
|
||||
</body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects any methods which may safely be made static.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body><span style="font-family: verdana,serif;">
|
||||
This inspection detects inconsistencies in overriding method signatures.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body><span style="font-family: verdana,serif;">
|
||||
This inspection looks for methods that lack a first parameter (which is usually named <code>self</code>).
|
||||
</span></body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection warns if call to super constructor in class is missed
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection looks for certain decorators that don't nest well.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects file contains non-ASCII characters and doesn't have an encoding declaration at the top.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body><span style="font-family: verdana,serif;">
|
||||
This inspection
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights occurrences of new-style class features in old-style classes.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">This inspection warns about imported or required, but not installed packages.</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">This inspection runs the pep8.py tool to check for violations of the PEP 8 coding style guide.</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection checks that properties are accessed correctly:
|
||||
read-only not set, write-only not read, non-deletable not deleted.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection checks that arguments to <code>property()</code> and functions annotated with
|
||||
<code>@property</code> and friends look reasonably.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection warns if a protected member is access outside the class or a descendant of the class where it's defined.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects attempts to raise a new-style class as an exception in projects with
|
||||
language level less than 2.5. Raising new-style classes is only supported in Python 2.5
|
||||
or later.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body><span style="font-family: verdana,serif;">
|
||||
This inspection detects redeclarations of names without being used in between, like this:<br/>
|
||||
<pre>def x(): pass
|
||||
x = 2
|
||||
</pre>
|
||||
It applies to function and class declarations, and assignments.<br/>
|
||||
<i>Currently it works in a very limited way and is off by default.</i>
|
||||
</span></body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection highlights redundant parentheses in statements.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body><span style="font-family: verdana,serif;">
|
||||
This inspection reports occurrences of <code>return</code> statements with a return value inside
|
||||
<code>__init__</code> methods of classes. A constructor should not return any value.
|
||||
</span> </body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects call for function "set" which can be replaced with
|
||||
set literal.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection detects shadowing of built-in names such as "len" or "list".
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection detects equality comparison with a boolean literal.
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||