Project

General

Profile

PyCharm Settings » History » Version 13

Alexander Watzinger, 2021-10-18 13:20

1 4 Alexander Watzinger
{{toc}}
2 1 Alexander Watzinger
3 11 Alexander Watzinger
h1. Suggested PyCharm settings
4 1 Alexander Watzinger
5 11 Alexander Watzinger
Under menu item *File > Settings* when using "PyCharm":https://www.jetbrains.com/pycharm/ IDE
6 1 Alexander Watzinger
7 11 Alexander Watzinger
h2. Editor
8 1 Alexander Watzinger
9 11 Alexander Watzinger
* General
10
** Remove trailing spaces on: *All lines*
11
** Set *Ensure every saved file ends with a line break*
12
* Code Style
13
** Set *hardwrap* to 80 columns
14
* Code Style > Python > Wrapping and Braces
15
** Set *Ensure right margin is not exceeded*
16 9 Alexander Watzinger
17 11 Alexander Watzinger
h2. Code Style > Python > Tab Imports
18 4 Alexander Watzinger
19
* Sort import statements
20
** Sort imported names in "from" imports
21
** Sort plain and "from" imports separately within a group
22
23
** Join imports with the same source
24 1 Alexander Watzinger
25 13 Alexander Watzinger
h2. Code Style > HTML -> Tabs and Indents
26
27
* Tab size: 2
28
* Indent: 2
29
* Continuation indent: 2
30
31 1 Alexander Watzinger
h2. Nosetests
32
33 2 Alexander Watzinger
Target: Choose *Script path* and enter path to *tests*, e.g. /home/alex/projects/www/openatlas/tests
34 12 Bernhard Koschiček-Krombholz
Additional Arguments: *--with-coverage --cover-html --cover-package tests --cover-package openatlas --cover-tests --cover-erase*
35 3 Alexander Watzinger
36
h2. Preferences
37
38
These are some personal preferences which don't have any effect on submitted code.
39
40
h3. Font
41
42
* Font: DejaVu Sans Mono
43
* Size: 13
44
* Line spacing: 1.2