Skip to content

Commit fb9155a

Browse files
authored
🥅 Fall back to the local JSON data if the API request fails (#10)
1 parent 5133fab commit fb9155a

File tree

7 files changed

+661
-6
lines changed

7 files changed

+661
-6
lines changed

‎.pre-commit-config.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ repos:
1010
files: (tests)
1111
args:
1212
- --pytest-test-first
13+
- id: pretty-format-json
14+
args:
15+
- --autofix
16+
- --indent=2
17+
- --no-ensure-ascii
18+
- --no-sort-keys
1319
- id: trailing-whitespace
1420
- repo: https://github.com/psf/black
1521
rev: '23.10.1'

‎pyproject.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ test = [
3535
include = ["gitmojis*"]
3636
where = ["src"]
3737

38+
[tool.setuptools.package-data]
39+
"gitmojis" = ["assets*"]
40+
3841
# Black
3942
# https://black.readthedocs.io/en/stable/usage_and_configuration/
4043

0 commit comments

Comments
 (0)