@@ -50,7 +50,7 @@ for item in items:
5050 print (item.offers.listings[0 ].price.amount) # Current price
5151```
5252
53- ** Use URL insted of ASIN:**
53+ ** Use URL instead of ASIN:**
5454
5555``` python
5656item = amazon.get_items(' https://www.amazon.com/dp/B01N5IB20Q' )
@@ -99,17 +99,29 @@ amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=0) # No wait time betw
9999
100100## Contribution
101101
102- Creating pull requests for this repo is higly appreciated to add new features or solve
103- bugs. To help during development process, githooks can be activated to run some scripts
104- before pushing new commits. This will run checks for code format and tests, to ensure
105- everything follows this repo guidelines. Use next command to activate them:
102+ Creating pull requests for this repo is highly appreciated to add new features or solve
103+ bugs. To help during development process, follow these steps:
106104
105+ 1 . Install [ uv] ( https://docs.astral.sh/uv/ ) package manager
106+ 2 . Clone the repository and install dependencies:
107+
108+ ``` bash
109+ git clone https://github.com/sergioteula/python-amazon-paapi.git
110+ cd python-amazon-paapi
111+ uv sync
107112```
108- git config core.hooksPath .githooks
113+
114+ 3 . Set up pre-commit hooks:
115+
116+ ``` bash
117+ uv run pre-commit install
109118```
110119
111- The same checks will also run on the repo with GitHub Actions to ensure all tests pass
112- before merge.
120+ 4 . Copy ` .env.template ` to ` .env ` and fill in your Amazon API credentials for integration tests.
121+
122+ The pre-commit hooks will run Ruff (linting and formatting), mypy (type checking), and
123+ tests before each commit. The same checks will also run on the repo with GitHub Actions
124+ to ensure all tests pass before merge.
113125
114126## License
115127
0 commit comments