Skip to content
Merged
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
9 changes: 9 additions & 0 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /bin/bash

ROOT_DIR="$(git rev-parse --show-toplevel)"
source "${ROOT_DIR}/scripts/helpers"

./scripts/check_isort
./scripts/check_black

header "Proceeding with push"
30 changes: 30 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint and test

on:
push:

jobs:

isort:
runs-on: ubuntu-latest
container:
image: sergioteula/pytools
volumes:
- ${{github.workspace}}:/code
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Check imports order
run: ./scripts/check_isort

black:
runs-on: ubuntu-latest
container:
image: sergioteula/pytools
volumes:
- ${{github.workspace}}:/code
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Check code format
run: ./scripts/check_black
3 changes: 3 additions & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ~/.shellcheckrc

disable=SC1091
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=4) # Makes 1 request e
amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=0) # No wait time between requests
```

## Contribution

Activate githooks with:

```
git config core.hooksPath .githooks
```

## License

Copyright © 2021 Sergio Abad. See [license](https://github.com/sergioteula/python-amazon-paapi/blob/master/LICENSE) for details.
123 changes: 0 additions & 123 deletions amazon/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions amazon/__init__.py

This file was deleted.

Loading