Skip to content

Commit a6a502e

Browse files
authored
Merge pull request #112 from sergioteula/apply-isort-and-black
Apply isort and black
2 parents 6613782 + ac46026 commit a6a502e

131 files changed

Lines changed: 454 additions & 20291 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.githooks/pre-push

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#! /bin/bash
2+
3+
ROOT_DIR="$(git rev-parse --show-toplevel)"
4+
source "${ROOT_DIR}/scripts/helpers"
5+
6+
./scripts/check_isort
7+
./scripts/check_black
8+
9+
header "Proceeding with push"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint and test
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
8+
isort:
9+
runs-on: ubuntu-latest
10+
container:
11+
image: sergioteula/pytools
12+
volumes:
13+
- ${{github.workspace}}:/code
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v2
17+
- name: Check imports order
18+
run: ./scripts/check_isort
19+
20+
black:
21+
runs-on: ubuntu-latest
22+
container:
23+
image: sergioteula/pytools
24+
volumes:
25+
- ${{github.workspace}}:/code
26+
steps:
27+
- name: Check out code
28+
uses: actions/checkout@v2
29+
- name: Check code format
30+
run: ./scripts/check_black

.shellcheckrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ~/.shellcheckrc
2+
3+
disable=SC1091

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=4) # Makes 1 request e
9999
amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=0) # No wait time between requests
100100
```
101101

102+
## Contribution
103+
104+
Activate githooks with:
105+
106+
```
107+
git config core.hooksPath .githooks
108+
```
109+
102110
## License
103111

104112
Copyright © 2021 Sergio Abad. See [license](https://github.com/sergioteula/python-amazon-paapi/blob/master/LICENSE) for details.

amazon/README.md

Lines changed: 0 additions & 123 deletions
This file was deleted.

amazon/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)