Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 36cb8b4

Browse files
Merge branch 'sharmaaditya570191-master'
2 parents f2868b1 + e57813e commit 36cb8b4

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

Diff for: .pre-commit-config.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
repos:
2+
- repo: https://gitlab.com/pycqa/flake8
3+
rev: '3.7.7'
4+
hooks:
5+
- id: flake8
6+
additional_dependencies: [flake8-docstrings, pep8-naming, flake8-import-order]
7+
8+

Diff for: docs/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Blog and management platform for PSF for running GSoC
55
## Installation
66

77
Requires python 3.6+
8+
To install development dependncies:-
89

910
```bash
1011
pip install -r requirements.txt
1112
```
12-
1313
## Usage
1414

1515
```python
@@ -54,6 +54,11 @@ You can create a virtualenv using the following command:
5454
$ virtualenv my_name
5555

5656
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.
57+
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:-
58+
59+
$ source virtualenv_name/bin/activate
60+
61+
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.
5762
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.
5863

5964
(virtualenv_name)$ pip install Django==1.9

Diff for: requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ fredirc==0.3.0
2222
pdfminer.six==20181108
2323
chardet==3.0.4
2424
phonenumbers==8.10.6
25+
pre-commit>=1.14.4

Diff for: tox.ini

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[flake8]
2+
max-line-length = 110
3+
exclude =
4+
# No need to traverse our git directory
5+
.git,
6+
#Contains mostly auto generated files
7+
*/migrations/*,
8+
*/static/CACHE/*,
9+
#Contains documentation for the project
10+
docs
11+
count = True
12+
format=pylint
13+
hang-closing = True
14+
show-source = True
15+
statistics = True
16+
output-file = output.txt
17+
tee = True
18+
#Enable PyFlakes syntax checking of doctests in docstrings
19+
doctests = True
20+

0 commit comments

Comments
 (0)