mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
Update python file templates' descriptions (PY-48274)
GitOrigin-RevId: 61c9420a274b546d3afffa6b8e72f5e3f1da515e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ee3922a80d
commit
b470c828e0
@@ -0,0 +1,12 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Creates an empty Python file.</p>
|
||||
<p>A simple example of a Python script:</p>
|
||||
<code>def print_hi(name):</code><br/>
|
||||
<code> print(f'Hi, {name}')</code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<code>if __name__ == '__main__':</code><br/>
|
||||
<code> print_hi('Python')</code>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Creates an empty stub file with the <code>.pyi</code> extension.
|
||||
Stub files allow you to specify type hints using Python 3 syntax for both Python 2 and 3.</p>
|
||||
<p>For more details, see <a href="https://www.jetbrains.com/help/pycharm/stubs.html">Working with stub files</a>.</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,7 +2,7 @@ import unittest
|
||||
|
||||
class MyTestCase(unittest.TestCase):
|
||||
def test_something(self):
|
||||
self.assertEqual(True, False)
|
||||
self.assertEqual(True, False) # add assertion here
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Creates an instance of a <code>unittest.TestCase</code> class with the method that
|
||||
contains <code>assertEqual</code>. Modify the method to implement some assertion logic.</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Creates a setup script with the following parameters: <code>name</code>, <code>version</code>, <code>packages</code>,
|
||||
<code>url</code>, <code>license</code>, <code>author</code>, <code>author_email</code>, and <code>description</code>.</p>
|
||||
<p>For more details about using setup scripts to create Python packages, see <a href="https://docs.python.org/3/distutils/setupscript.html#writing-the-setup-script">Setup.py</a>.</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -244,6 +244,7 @@
|
||||
<analyzeStacktraceFilter implementation="com.jetbrains.python.run.PyRemoteAnalyzeStacktraceFilter"/>
|
||||
|
||||
<internalFileTemplate name="Python Script"/>
|
||||
<internalFileTemplate name="Python Stub"/>
|
||||
<internalFileTemplate name="Python Unit Test"/>
|
||||
<internalFileTemplate name="Setup Script"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user