Project

General

Profile

PyCharm Settings » History » Version 12

Bernhard Koschiček-Krombholz, 2021-08-31 15:23

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
h2. Nosetests
26
27 2 Alexander Watzinger
Target: Choose *Script path* and enter path to *tests*, e.g. /home/alex/projects/www/openatlas/tests
28 12 Bernhard Koschiček-Krombholz
Additional Arguments: *--with-coverage --cover-html --cover-package tests --cover-package openatlas --cover-tests --cover-erase*
29 3 Alexander Watzinger
30
h2. Preferences
31
32
These are some personal preferences which don't have any effect on submitted code.
33
34
h3. Font
35
36
* Font: DejaVu Sans Mono
37
* Size: 13
38
* Line spacing: 1.2