You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 26, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/README.md
+12
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,18 @@ Blog and management platform for PSF for running GSoC
5
5
## Installation
6
6
7
7
Requires python 3.6+
8
+
To install development dependncies:-
8
9
9
10
```bash
10
11
pip install -r requirements.txt
11
12
```
13
+
To install pre-commit package manager for linting support using pip:-
12
14
15
+
$ pip install pre-commit
16
+
17
+
or
18
+
Run $pre-commit install to install pre-commit into your git hooks.
19
+
pre-commit will now run on every commit. Every time you clone a project using pre-commit running pre-commit install should always be the first thing you do.
13
20
## Usage
14
21
15
22
```python
@@ -54,6 +61,11 @@ You can create a virtualenv using the following command:
54
61
$ virtualenv my_name
55
62
56
63
After running this command, a directory named my_name will be created. This is the directory which contains all the necessary executables to use the packages that a Python project would need. This is where Python packages will be installed.
64
+
Now after creating virtual environment, you need to activate it. Remember to activate the relevant virtual environment every time you work on the project. This can be done using the following command:-
65
+
66
+
$ source virtualenv_name/bin/activate
67
+
68
+
Once the virtual environment is activated, the name of your virtual environment will appear on left side of terminal. This will let you know that the virtual environment is currently active.
57
69
Now you can install dependencies related to the project in this virtual environment. For example if you are using Django 1.9 for a project, you can install it like you install other packages.
0 commit comments