Skip to content

Commit

Permalink
Merge pull request #242 from EasyPost/docs
Browse files Browse the repository at this point in the history
feat: adds library documentation
  • Loading branch information
Justintime50 authored Nov 3, 2022
2 parents 8fcecf6 + 205ed15 commit 78f3c82
Show file tree
Hide file tree
Showing 41 changed files with 16,466 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
* text=auto

# Cassettes
tests/cassettes/* -diff
tests/cassettes/* linguist-generated

# Docs
docs/**/* -diff
docs/**/* linguist-generated
20 changes: 12 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ TEST_DIR := tests
help:
@cat Makefile | grep '^## ' --color=never | cut -c4- | sed -e "`printf 's/ - /\t- /;'`" | column -s "`printf '\t'`" -t

## black - Runs the Black Python formatter against the project
black:
$(VIRTUAL_BIN)/black $(PROJECT_NAME)/ $(TEST_DIR)/

## black-check - Checks if the project is formatted correctly against the Black rules
black-check:
$(VIRTUAL_BIN)/black $(PROJECT_NAME)/ $(TEST_DIR)/ --check

## build - Builds the project in preparation for release
build:
$(VIRTUAL_BIN)/python setup.py sdist bdist_wheel
Expand All @@ -21,13 +29,9 @@ clean:
coverage:
$(VIRTUAL_BIN)/pytest --cov=$(PROJECT_NAME) --cov-branch --cov-report=html --cov-report=term-missing --cov-fail-under=87

## black - Runs the Black Python formatter against the project
black:
$(VIRTUAL_BIN)/black $(PROJECT_NAME)/ $(TEST_DIR)/

## black-check - Checks if the project is formatted correctly against the Black rules
black-check:
$(VIRTUAL_BIN)/black $(PROJECT_NAME)/ $(TEST_DIR)/ --check
## docs - Generates docs for the library
docs:
$(VIRTUAL_BIN)/pdoc $(PROJECT_NAME) -o docs

## format - Runs all formatting tools against the project
format: black isort
Expand Down Expand Up @@ -75,4 +79,4 @@ scan:
test:
$(VIRTUAL_BIN)/pytest

.PHONY: help build clean coverage black black-check format format-check install isort isort-check lint mypy publish release scan test
.PHONY: help black black-check build clean coverage docs format format-check install isort isort-check lint mypy publish release scan test
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ EASYPOST_TEST_API_KEY=123... EASYPOST_PROD_API_KEY=123... make coverage
# Run security analysis
make scan

# Generate library documentation
make docs

# Update submodules
git submodule init
git submodule update --remote
Expand Down
310 changes: 310 additions & 0 deletions docs/easypost.html

Large diffs are not rendered by default.

492 changes: 492 additions & 0 deletions docs/easypost/address.html

Large diffs are not rendered by default.

583 changes: 583 additions & 0 deletions docs/easypost/batch.html

Large diffs are not rendered by default.

243 changes: 243 additions & 0 deletions docs/easypost/beta.html

Large diffs are not rendered by default.

809 changes: 809 additions & 0 deletions docs/easypost/beta/referral.html

Large diffs are not rendered by default.

530 changes: 530 additions & 0 deletions docs/easypost/billing.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions docs/easypost/brand.html

Large diffs are not rendered by default.

365 changes: 365 additions & 0 deletions docs/easypost/carrier_account.html

Large diffs are not rendered by default.

239 changes: 239 additions & 0 deletions docs/easypost/constant.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions docs/easypost/customs_info.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions docs/easypost/customs_item.html

Large diffs are not rendered by default.

1,046 changes: 1,046 additions & 0 deletions docs/easypost/easypost_object.html

Large diffs are not rendered by default.

434 changes: 434 additions & 0 deletions docs/easypost/endshipper.html

Large diffs are not rendered by default.

375 changes: 375 additions & 0 deletions docs/easypost/error.html

Large diffs are not rendered by default.

331 changes: 331 additions & 0 deletions docs/easypost/event.html

Large diffs are not rendered by default.

306 changes: 306 additions & 0 deletions docs/easypost/insurance.html

Large diffs are not rendered by default.

431 changes: 431 additions & 0 deletions docs/easypost/order.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions docs/easypost/parcel.html

Large diffs are not rendered by default.

431 changes: 431 additions & 0 deletions docs/easypost/pickup.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions docs/easypost/pickup_rate.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions docs/easypost/postage_label.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions docs/easypost/rate.html

Large diffs are not rendered by default.

796 changes: 796 additions & 0 deletions docs/easypost/referral.html

Large diffs are not rendered by default.

306 changes: 306 additions & 0 deletions docs/easypost/refund.html

Large diffs are not rendered by default.

390 changes: 390 additions & 0 deletions docs/easypost/report.html

Large diffs are not rendered by default.

1,393 changes: 1,393 additions & 0 deletions docs/easypost/requestor.html

Large diffs are not rendered by default.

922 changes: 922 additions & 0 deletions docs/easypost/resource.html

Large diffs are not rendered by default.

348 changes: 348 additions & 0 deletions docs/easypost/scanform.html

Large diffs are not rendered by default.

906 changes: 906 additions & 0 deletions docs/easypost/shipment.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions docs/easypost/tax_identifier.html

Large diffs are not rendered by default.

362 changes: 362 additions & 0 deletions docs/easypost/tracker.html

Large diffs are not rendered by default.

624 changes: 624 additions & 0 deletions docs/easypost/user.html

Large diffs are not rendered by default.

319 changes: 319 additions & 0 deletions docs/easypost/util.html

Large diffs are not rendered by default.

241 changes: 241 additions & 0 deletions docs/easypost/version.html

Large diffs are not rendered by default.

487 changes: 487 additions & 0 deletions docs/easypost/webhook.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions docs/search.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
"flake8==5.*",
"isort==5.*",
"mypy==0.971",
"pdoc==12.*;python_version>='3.7'",
"pytest-cov==3.*",
"pytest-vcr==1.*",
"pytest==7.*",
"twine==3.8.*", # Twine 4.0+ drops support for Python 3.6
"twine==3.8.*", # Twine 4.0 drops support for Python 3.6
"types-requests",
"types-urllib3",
"vcrpy==4.*",
Expand Down

0 comments on commit 78f3c82

Please sign in to comment.