Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding docs #22

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
632a2a6
Added template files and vscode settings
melonpii Nov 20, 2022
d4a95fe
Added mongodb settings
melonpii Nov 20, 2022
6ce2f1d
Cleanup and Install.MD
melonpii Nov 24, 2022
cb14efc
Merge pull request #1 from VSangarya/readme
melonpii Nov 24, 2022
1c6e2d3
Added build file - GitHub Actions
melonpii Nov 24, 2022
27e3429
Update README.md
melonpii Nov 24, 2022
7208ee3
Changed password input and stored in db as hash
atharv67 Nov 26, 2022
6972b57
unique username fix
atharv67 Nov 26, 2022
85a2c87
added forum feature
atharv67 Nov 29, 2022
1db0be5
adjusted UI
atharv67 Nov 29, 2022
7bc9b99
adjusted UI
atharv67 Nov 29, 2022
37c7fb1
Autocomplete check v1
VSangarya Nov 30, 2022
46c6b88
l
VSangarya Nov 30, 2022
325d1ec
Edit route auto complete
VSangarya Nov 30, 2022
172f0c9
Update views.py
VSangarya Nov 30, 2022
c0f0e57
Merge branch 'main' into passwordstore
melonpii Nov 30, 2022
3fe0a36
Merge pull request #14 from VSangarya/passwordstore
VSangarya Nov 30, 2022
7b45922
Merge branch 'main' into auto-complete-check
melonpii Nov 30, 2022
7819ddd
fix gitignore
melonpii Nov 30, 2022
ea82276
Merge pull request #15 from VSangarya/auto-complete-check
shivangichopra10 Nov 30, 2022
032b0df
Remove unused imports
melonpii Dec 1, 2022
4b93169
Merge branch 'main' into ride-dependency
melonpii Dec 1, 2022
7c01dc7
Removed ride-route dependency
melonpii Dec 1, 2022
de5a247
Readd google places api
melonpii Dec 1, 2022
57d6be5
Rides can now be requested and approved
melonpii Dec 2, 2022
7dd458c
Autocomplete to source
VSangarya Dec 2, 2022
170fb80
Merge pull request #16 from VSangarya/ride-dependency
VSangarya Dec 2, 2022
1a7f543
Add map route for ride
VSangarya Dec 2, 2022
2223fe3
Merge pull request #19 from VSangarya/gmaps-route
atharv67 Dec 3, 2022
796ea1e
Adding autodocs
qureshi-ali Dec 4, 2022
fade41b
Adding config file for workflow
qureshi-ali Dec 4, 2022
2d3033d
Update sphinx_autogenerator.yml
qureshi-ali Dec 4, 2022
0857042
Changing requests module
qureshi-ali Dec 4, 2022
3af5a8d
Merge branch 'adding_docs' of https://github.com/VSangarya/PackTravel…
qureshi-ali Dec 4, 2022
94b6439
Update sphinx_autogenerator.yml
qureshi-ali Dec 4, 2022
3eef490
Update sphinx_autogenerator.yml
qureshi-ali Dec 4, 2022
bbf86fb
Update conf.py
qureshi-ali Dec 4, 2022
8e16434
updating docs
qureshi-ali Dec 4, 2022
4673252
Update sphinx_autogenerator.yml
melonpii Dec 4, 2022
28df276
Update sphinx_autogenerator.yml
melonpii Dec 4, 2022
e2a225f
Update sphinx_autogenerator.yml
melonpii Dec 4, 2022
5f4cc21
updating docs
qureshi-ali Dec 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the problem**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Actual behavior**
A concise description of what happens when you reproduce the behavior.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
OS: e.g. Linux, Windows, macOS

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/workflows/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: feature
assignees: ''

---

**What problem do you want to solve? Please describe.**
A clear and concise description of what the problem is. Ex. I want to see names of unique listening ports across my organization.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Workflow name
name: Build

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events for the "main" branch
push:
branches: ["main"]
pull_request:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
- name: Install Python Dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run linter on Python code files
run: |
pylint --errors-only --verbose --rcfile=pylintrc user/*.py
pylint --errors-only --verbose --rcfile=pylintrc publish/*.py
pylint --errors-only --verbose --rcfile=pylintrc search/*.py

# - name: Run tests and coverage report
# run: |
# coverage run --source=src --data-file tests/.coverage -m pytest -s
# coverage xml --data-file tests/.coverage -o tests/coverage.xml
# coverage report --data-file tests/.coverage -m

# - name : Send coverage report
# run: |
# pip install codacy-coverage
# export CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }}
# export CODACY_API_TOKEN=${{ secrets.CODACY_API_TOKEN }}
# export CODACY_USERNAME=VSangarya
# export CODAY_PROJECT_NAME=AMATSA
# python-codacy-coverage -r tests/coverage.xml
3 changes: 3 additions & 0 deletions .github/workflows/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PR template
* Give a concise summary and a short description of what changed in files that have beed added/modified.
* Link related issues to PR.
23 changes: 0 additions & 23 deletions .github/workflows/pylint.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/workflows/python_style_checker.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/python_syntax_check.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/sphinx_autogenerator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: sphinx-autogenerator

on:
# Triggers the workflow on push or pull request events for the "main" branch
push:
branches: ["adding_docs"]
pull_request:
branches: ["adding_docs"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build documentation and commit
run: |
git pull origin adding_docs
python -m pip install --upgrade pip
pip install -r requirements.txt
sudo apt-get install python3-sphinx
sphinx-apidoc -f -o docs/source PackTravel
sphinx-apidoc -f -o docs/source publish
sphinx-apidoc -f -o docs/source request
sphinx-apidoc -f -o docs/source search
sphinx-apidoc -f -o docs/source user
cd docs/
make html
cd ..
git config --global user.name "qureshi-ali"
git config --global user.email "[email protected]"
git add .
git commit -m "updating docs" -a || true
git push -u origin adding_docs
# ===============================
16 changes: 0 additions & 16 deletions .github/workflows/testcases.yml

This file was deleted.

141 changes: 3 additions & 138 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,141 +1,6 @@
# Byte-compiled / optimized / DLL files
__pycache__/
config.ini
PackTravel/__pycache__/
*.py[cod]
*$py.class
# files
.DS_Store
# C extensions
*.so
.idea/

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
# directories
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/
__pycache__
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"editor.insertSpaces": true,
"editor.tabSize": 4,
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": [
"--rcfile",
"${workspaceFolder}/pylintrc"
]
}
File renamed without changes.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The following is a set of guidelines for contributing to PackTravel.
[How Can I Contribute?](#how-can-i-contribute)
* [Reporting Bugs](#reporting-bugs)
* [Suggesting Enhancements](#suggesting-enhancements)
* [Style Guides](#style-guides)
* [Pull Requests](#pull-requests)


Expand Down Expand Up @@ -55,6 +56,8 @@ This section guides you through submitting an enhancement suggestion, including
* **Drop an [email](mailto:[email protected]) suggesting your change and start writing code.**
* **Do not open an issue on GitHub until you have collected positive feedback about the change. GitHub issues are primarily intended for bug reports and fixes.**

### Style Guides
This project uses Python linter to ensure the code style is uniform and conforms to a well known syntactical style: [Pylint analyser](https://pylint.pycqa.org/en/latest/).

### Pull Requests

Expand Down
Loading