Skip to content

Commit 5d55241

Browse files
committed
Update readme - #129
1 parent 8192abf commit 5d55241

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/workflows/fetch-daily.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
13+
1314
steps:
1415
- name: Checkout main branch
1516
uses: actions/checkout@v6
@@ -28,10 +29,12 @@ jobs:
2829
- name: Run fetch.py
2930
env:
3031
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
run: python fetch.py
32+
run: |
33+
APP_ENV=production python fetch.py
3234
3335
- name: Run render.py
34-
run: python render.py
36+
run: |
37+
python render.py
3538
3639
- name: Check for changes
3740
id: changes

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,21 @@ Explore and showcase the top GitHub user avatars in a modern, interactive grid.
3636
git clone https://github.com/john-bampton/john-bampton.github.io.git
3737
cd john-bampton.github.io
3838
```
39+
3940
2. **Install dependencies:**
4041
```bash
4142
pip install -e .
4243
```
44+
4345
3. **Run the fetcher:**
4446
```bash
45-
python fetch.py
47+
APP_ENV=test python fetch.py
4648
```
49+
<br>
50+
<sup>
51+
<b>Tip:</b> Setting <code>APP_ENV=test</code> will fetch only <b>20 users</b> for fast testing. Omit this variable to fetch <b>400 users</b> (default, production mode).
52+
</sup>
53+
4754
4. **Open the grid:**
4855
```bash
4956
docs/index.html
@@ -70,7 +77,7 @@ Explore and showcase the top GitHub user avatars in a modern, interactive grid.
7077
- Code formatted with [black](https://github.com/psf/black) and [isort](https://github.com/pycqa/isort)
7178
- Pre-commit hooks: see `.pre-commit-config.yaml`
7279
- Configs in `pyproject.toml`
73-
- Linting: flake8, pylint, yamllint
80+
- Linting: flake8, pylint, yamllint, isort, black
7481

7582
---
7683

@@ -85,8 +92,19 @@ Explore and showcase the top GitHub user avatars in a modern, interactive grid.
8592

8693
## 🤝 Contributing
8794

95+
8896
We welcome PRs, issues, and suggestions! Add a ⭐, fork, or help improve the grid and features.
8997

98+
**Code Quality Reminder:**
99+
100+
- Always run `pre-commit run --all-files` before pushing or opening a pull request. This ensures your code is auto-formatted and passes all checks.
101+
- If you don't have pre-commit installed, run:
102+
```bash
103+
pip install pre-commit
104+
pre-commit install
105+
```
106+
This sets up the hooks for your local repo.
107+
90108
---
91109

92110
## Powered by

0 commit comments

Comments
 (0)