This repository has been archived by the owner on Apr 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from thejessleigh/new-project-ownership
Overhauled the project - https, documentation, and code style changes
- Loading branch information
Showing
90 changed files
with
8,611 additions
and
1,821 deletions.
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
*pyc | ||
build/ | ||
docs/site/* | ||
dist/ | ||
goodreads.egg-info/ | ||
.coverage | ||
examples/*.json | ||
*.json | ||
venv/ | ||
docs/_* | ||
.idea/ | ||
htmlcov/ |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: master | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [black] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: master | ||
hooks: | ||
- id: trailing-whitespace | ||
additional_dependencies: [black] | ||
- repo: https://github.com/prettier/prettier | ||
rev: master | ||
hooks: | ||
- id: prettier | ||
files: "\\.(\ | ||
txt\ | ||
|rst\ | ||
|in\ | ||
|json\ | ||
|yaml|yml\ | ||
)$" |
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 |
---|---|---|
@@ -1,15 +1,10 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.5" | ||
before_install: | ||
- openssl aes-256-cbc -K $encrypted_2f1e0e39ed26_key -iv $encrypted_2f1e0e39ed26_iv | ||
-in apikey.py.enc -out goodreads/apikey.py -d | ||
- "3.6" | ||
- "3.7-dev" | ||
install: | ||
- pip install -r requirements.txt | ||
- pip install coveralls | ||
script: nosetests --with-coverage --cover-package=goodreads | ||
notifications: | ||
email: false | ||
after_success: | ||
coveralls | ||
- pip install -r requirements.txt | ||
- pip install -r requirements-dev.txt | ||
- pip install coveralls==1.7.0 | ||
script: pytest --cov=betterreads | ||
after_success: coveralls |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
Contribution Guide | ||
================== | ||
|
||
Submitting an Issue | ||
------------------- | ||
|
||
If you notice something is broken, a feature is missing, or you have a request to make the project better, please | ||
feel free to submit an issue via the issue tracker. You do not need to have a solution or commit to fixing the problem | ||
in order to create an issue. However, if you would like to contribute to the project, we would love to have your | ||
contribution! | ||
|
||
Fork the Repo and Create a Branch | ||
--------------------------------- | ||
|
||
To contribute to this project, first make a fork of the repo. Then create a branch on your local fork. If your change | ||
corresponds to an issue your branch name should start with to that issue number. Your name branch should be descriptive. | ||
|
||
Example: ``13-add-delete-to-owned-book`` | ||
|
||
Once you've made your changes | ||
|
||
|
||
Pre-Commit | ||
---------- | ||
|
||
This project uses pre-commit hooks to ensure consistent code style throughout the repo. We use | ||
`black <https://github.com/ambv/black>`__ for Python files and Python code within documentation. We use | ||
`prettier <https://github.com/prettier/prettier>`__ for all other filetypes. | ||
|
||
Make sure you've installed all the packages listed in both ``requirements.txt`` and ``requirements-dev.txt``. | ||
This will install pre-commit for you. Then run ``pre-commit install`` to set up the local pre-commit environment. | ||
|
||
Pre-commit will run each time you attempt to commit staged changes. You can run the pre-commit checks at any time | ||
using ``pre-commit run``. | ||
|
||
Running Tests | ||
------------- | ||
|
||
You will not need your own developer keys to run the unit tests. However, you will need developer keys for the | ||
Goodreads API in order to run the integration test suite. Any changes you make likely shouldn't impact the integration | ||
tests, but if for some reason you do need to adjust them and run them, set your developer keys as ``GOODREADS_KEY`` | ||
and ``GOODREADS_SECRET`` environment variables. | ||
|
||
To run the test suite, make sure you've installed the packages listed in ``requirements.txt`` and | ||
``requirements-dev.txt``. Then run ``pytest --cov=betterreads`` | ||
|
||
Pull requests that cause the repository's overall test coverage to drop below 85% or cause a decrease in coverage of | ||
over 5% will be rejected. Please make sure to update tests in accordance with your changes. | ||
|
||
Community Standards | ||
------------------- | ||
|
||
In general, PRs will be acknowledged within one week of receipt. I wish I could say that they would all be | ||
reviewed and merge in in this timeframe, but sometimes life gets the better of us. I'll do my best. | ||
|
||
All contributions and discussions in this repo should abide by the `Code of Conduct <CODE_OF_CONDUCT.md>`__. |
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
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
Oops, something went wrong.