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

Passwordstore #20

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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.

16 changes: 0 additions & 16 deletions .github/workflows/testcases.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# config files
config.yml

# Byte-compiled / optimized / DLL files
__pycache__/
config.ini
PackTravel/__pycache__/
*.py[cod]
*$py.class
Expand Down
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
26 changes: 26 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 👩🏼‍💻 🚀 Developer Environment Setup
## Prerequisites
1. Python 3.6+
2. VS Code (to make collaboration easier. We don't want to argue over tabs vs spaces!)
3. MongoDB Cloud Account: After setting up your free account on [MongoDB](https://www.mongodb.com/cloud/atlas/register) cloud, you will have a username, password and the database connection string.
## Setup
1. Clone this repository to your local machine.

2. Change terminal to repository directory and create a new virtual environment using venv: `path/to/python -m venv .venv`

3. Activate virtual environment:<br/>
Linux/MacOS: `source .venv/bin/activate`<br/>
Windows: `.venv/Scripts/activate`<br/>

4. Install Python dependencies
```Text
pip install -r requirements.txt
```

5. Add your MongoDB connection string and user credentials to the `config.yml` file in the repository root directory.

6. Start the development server using the following commands
```Text
python manage.py migrate
python manage.py runserver
```
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Amisha Waghela
Copyright (c) 2022 VSangarya

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 3 additions & 1 deletion PackTravel/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@
path('create_ride/', publishViews.create_ride, name='create_ride'),
path('add_route/', publishViews.add_route, name='add_route'),
path('select_route/', publishViews.select_route, name='select_route'),
path('display_ride/<ride_id>', publishViews.display_ride, name='display_ride')
path('display_ride/<ride_id>', publishViews.display_ride, name='display_ride'),
path('route_page/<route_id>',publishViews.show_route,name="showroutepage"),
path('add_forum/',publishViews.add_forum,name="addforum")
]
Loading