-
Notifications
You must be signed in to change notification settings - Fork 70
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
Docs #69
Closed
Closed
Docs #69
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,16 +163,20 @@ like [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv), | |
[virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/), and | ||
[pyenv-virtualenvwrapper](https://github.com/pyenv/pyenv-virtualenvwrapper). | ||
|
||
for git related issues refer to https://github.com/101Loop/APIManager-Flutter/blob/master/CONTRIBUTING.md | ||
|
||
Next, get an up to date checkout of the `drf-user` repository: | ||
|
||
### For Linux Users: | ||
|
||
```sh | ||
$ git clone [email protected]:101loop/drf-user.git | ||
$ git clone [email protected]:<your-username>/drf-user.git | ||
``` | ||
|
||
or if you want to use git via `https`: | ||
|
||
```sh | ||
$ git clone https://github.com/101loop/drf-user.git | ||
$ git clone https://github.com/<your-github-username>/browser-history.git | ||
``` | ||
HardipinderS marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Change into the newly created directory and **after activating your virtual | ||
|
@@ -226,6 +230,75 @@ Commit your changes and push your branch to GitHub: | |
|
||
Submit a pull request through the GitHub website. | ||
|
||
### For setting up in windows system: | ||
|
||
You can either install "chocolatey" and run "choco install make" to use make functions | ||
or | ||
you can utilize the below commands | ||
|
||
``` | ||
(env) $ cd drf-user | ||
(env) $ pip install -r requirements-dev.txt | ||
(env) $ pip install -e . | ||
``` | ||
|
||
then do | ||
|
||
``` | ||
pre-commit install | ||
``` | ||
|
||
to test the app | ||
|
||
``` | ||
(env) $ python -m pytest --disable-pytest-warnings --ds=tests.settings --cov=drf_user tests/ | ||
(env) $ sphinx-autobuild --port 8888 -b html . _build/html --open-browser | ||
|
||
``` | ||
|
||
The built documentation can then be found in | ||
[`localhost:8888`](http://localhost:8888). | ||
|
||
Create a branch for local development: | ||
|
||
``` | ||
(env) $ git checkout -b <branch_name> | ||
``` | ||
|
||
Now you can make your changes locally. | ||
make sure the format is checked | ||
|
||
You can use | ||
``` | ||
make check | ||
``` | ||
|
||
or | ||
copy and run this block of commands | ||
``` | ||
rm -rf build/ | ||
rm -rf dist/ | ||
rm -rf *.egg-info | ||
find . -name '*.pyc' -follow -print0 | xargs -0 rm -f | ||
find . -name '*.pyo' -follow -print0 | xargs -0 rm -f | ||
find . -name '__pycache__' -type d -follow -print0 | xargs -0 rm -rf | ||
rm -rf .coverage coverage* | ||
rm -rf tests/.coverage test/coverage* | ||
rm -rf htmlcov/ | ||
flake8 --exclude=*/migrations/* --max-line-length 88 drf_user | ||
black --exclude .+/migrations/.+\.py drf_user | ||
(env) $ python -m pytest --disable-pytest-warnings --ds=tests.settings --cov=drf_user tests/ | ||
``` | ||
|
||
Commit your changes and push your branch to GitHub: | ||
|
||
``` | ||
(env) $ git add . | ||
(env) $ git commit -m "Your detailed description of your changes." | ||
(env) $ git push origin name-of-your-bugfix-or-feature | ||
``` | ||
|
||
|
||
## Code of Conduct | ||
|
||
Please note that this project is released with a Contributor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HardipinderS I told you to take reference from that link and update this contributing guide on how to work on a forked version of this copy. So, please update the documentation guide how a user can contribute using a forked copy of this repo. We don't want users redirect to some other pages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what and how much exactly is to be referred and added in that part, so gave the link. i would request you to please look into that part, as I'm not that sure what exactly is required