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
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- uses: ./.github/actions/setup-python
- name: UnitTest
working-directory: ./python
run: python -m unittest discover ./test
run: pytest
mypy:
timeout-minutes: 10
runs-on: ubuntu-latest
Expand Down
23 changes: 21 additions & 2 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,33 @@

- Python 3.14.4

## 2. Execution
## 2. Install Libraries via requirements.txt

```command
$ pip install -r requirements.txt
```

## 3. Execution

```command
$ cd ./python
$ python main.py
Provide the directory name you put the JSON file in: ../json
Provide the filename of which JSON data name you would like to sort: settings.json
Provide asc(default) or desc you would like to sort key-value in: asc
Start exporting JSON data in ./json/settings.json
Done exporting JSON data in ./json/settings.json 🎉
```

## 4. Unit Test

```command
$ pytest
============================= test session starts ==============================
platform linux -- Python 3.14.4, pytest-9.0.3, pluggy-1.6.0
rootdir: /mnt/c/Users/binlh/Documents/development/json-data-sorters/python
collected 5 items

test/test_application.py ..... [100%]

============================== 5 passed in 0.26s ===============================
```
Loading