Project

General

Profile

PyCharm Settings » History » Version 21

Nina Richards, 2024-10-09 12:47

1 21
{{toc}}
2
3
h1. Installation
4
5
Either get it from "PyCharm":https://www.jetbrains.com/pycharm/ directly or use these "instructions":https://wiki.debian.org/JetBrains for Debian.
6
7
h1. Suggested PyCharm settings
8
9
Under menu item *File > Settings* when using "PyCharm":https://www.jetbrains.com/pycharm/ IDE
10
11
h2. Editor
12
13
* General
14
** Remove trailing spaces on: *All lines*
15
** Set *Ensure every saved file ends with a line break*
16
* Code Style
17
** Set *hardwrap* to 79 columns
18
19
h2. Code Style > Python > Wrapping and Braces
20
21
* Set *Ensure right margin is not exceeded*
22
23
h2. Code Style > Python > Tab Imports
24
25
* Sort import statements
26
** Sort imported names in "from" imports
27
** Sort plain and "from" imports separately within a group
28
29
** Join imports with the same source
30
31
h2. Code Style > HTML -> Tabs and Indents
32
33
* Tab size: 2
34
* Indent: 2
35
* Continuation indent: 2
36
37
h2. (PyCharm Professional) Code Style > JavaScript -> Tabs and Indents
38
39
* Tab size: 2
40
* Indent: 2
41
* Continuation indent: 2
42
43
h2. Plugins
44
45
* Mypy
46
* Pylint
47
48
h2. Nosetests
49
50
* Add a Python Nosetest
51
* Target: Choose *Script path* and select path to */tests*
52
* Additional Arguments: *--config=.noserc*
53
54
h1. Preferences
55
56
These are some personal preferences of Alex which don't have any effect on submitted code.
57
58
h2. Appearance and Behavior
59
60
* Appearance -> Check *widescreen windows layout*
61
62
h2. Font
63
64
* Font: DejaVu Sans Mono
65
* Size: 13
66
* Line spacing: 1.2