Skip to content

Commit

Permalink
Test (#106)
Browse files Browse the repository at this point in the history
* format_json

* assets

* DATA UPDATE 2024-12-05

* ok
  • Loading branch information
PtPrashantTripathi authored Dec 5, 2024
1 parent 034cc67 commit 1333176
Show file tree
Hide file tree
Showing 166 changed files with 10,110 additions and 237,711 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/data_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
name: python
RELEASE_DATE: "" # Placeholder for release date, set dynamically during the job
PROJECT_DIR: ${{ github.workspace }} # Set project directory to the current GitHub workspace
USERNAME: ${{ github.repository_owner }} # Set USERNAME to the current GitHub Repository owner

steps:
# Step 1: Checkout the repository
Expand Down Expand Up @@ -46,7 +47,7 @@ jobs:
- name: Run Jupyter notebooks
run: |
echo "Running all Jupyter notebooks..."
bash ./PIPELINES/all_runner.sh
bash ./SCRIPTS/all_runner.sh
# Step 6: Create a pull request with the data updates
- name: Create Pull Request
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_github_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
USERNAME: ${{ github.repository_owner }} # Set USERNAME to the current GitHub Repository owner

# Use the latest stable Ubuntu runner
runs-on: ubuntu-latest
Expand Down
24 changes: 14 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: requirements-txt-fixer
- id: check-case-conflict
- id: check-ast
- id: check-docstring-first
Expand All @@ -25,10 +26,10 @@ repos:
hooks:
- id: check-github-workflows

- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
hooks:
- id: codespell
# - repo: https://github.com/codespell-project/codespell
# rev: "v2.3.0"
# hooks:
# - id: codespell

- repo: https://github.com/psf/black
rev: 24.8.0
Expand All @@ -45,12 +46,15 @@ repos:
name: isort (python)

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.7
rev: 1.9.1
hooks:
- id: nbqa-pyupgrade
args: ["--py37-plus"]
- id: nbqa-isort
args: ["--order-by-type", "--length-sort", "black"]
- id: nbqa-black
additional_dependencies: [jupytext] # optional, only if you're using Jupytext
args: ["--nbqa-shell"]
- id: nbqa-pyupgrade
args: ["--py37-plus"]
- id: nbqa-isort
args: ["--float-to-top"]

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
Expand All @@ -61,6 +65,6 @@ repos:
hooks:
- id: json-formatter
name: JSON Formatter
entry: ./bin/format_json
entry: ./SCRIPTS/format_json
language: python
files: \.json$
6 changes: 4 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"cSpell.words": [
"dtype"
],
"css.validate": false,
"liveServer.settings.port": 5501,
"prettier.printWidth": 80,
"cSpell.words": ["dtype"]
"prettier.printWidth": 80
}
2 changes: 1 addition & 1 deletion CONFIG/CONSTANTS/stock_tickers.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"TATAPOWER": "TATAPOWER.NS",
"TRIDENT": "TRIDENT.NS",
"TTML": "TTML.NS",
"UNITDSPR": "UNITDSPR.NS",
"URJA": "URJA.NS",
"UNITDSPR":"UNITDSPR.NS",
"VIJIFIN": "VIJIFIN.NS",
"VIKASLIFE": "VIKASLIFE.NS",
"VIRTUALG": "VIRTUALG.BO",
Expand Down
5 changes: 4 additions & 1 deletion CONFIG/DATA_CONTRACTS/BRONZE/Symbol.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
"data_type": "string"
}
],
"order_by": ["instrument_type", "scrip_name"]
"order_by": [
"instrument_type",
"scrip_name"
]
}
8 changes: 7 additions & 1 deletion CONFIG/DATA_CONTRACTS/GOLD/CurrentHolding.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,11 @@
"data_type": "float64"
}
],
"order_by": ["segment", "exchange", "symbol", "scrip_name", "datetime"]
"order_by": [
"segment",
"exchange",
"symbol",
"scrip_name",
"datetime"
]
}
7 changes: 6 additions & 1 deletion CONFIG/DATA_CONTRACTS/GOLD/Dividend.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,10 @@
"data_type": "float64"
}
],
"order_by": ["financial_year", "date", "segment", "symbol"]
"order_by": [
"financial_year",
"date",
"segment",
"symbol"
]
}
8 changes: 7 additions & 1 deletion CONFIG/DATA_CONTRACTS/GOLD/Holding.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,11 @@
"data_type": "float64"
}
],
"order_by": ["date", "segment", "exchange", "symbol", "scrip_name"]
"order_by": [
"date",
"segment",
"exchange",
"symbol",
"scrip_name"
]
}
6 changes: 5 additions & 1 deletion CONFIG/DATA_CONTRACTS/SILVER/StockEvents.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@
"data_type": "float64"
}
],
"order_by": ["symbol", "date", "event"]
"order_by": [
"symbol",
"date",
"event"
]
}
5 changes: 4 additions & 1 deletion CONFIG/DATA_CONTRACTS/SILVER/StockPrice.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@
"data_type": "float64"
}
],
"order_by": ["symbol", "date"]
"order_by": [
"symbol",
"date"
]
}
4 changes: 3 additions & 1 deletion CONFIG/DATA_CONTRACTS/SILVER/TradeHistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@
"data_type": "datetime64[ns]"
}
],
"order_by": ["datetime"]
"order_by": [
"datetime"
]
}
Loading

0 comments on commit 1333176

Please sign in to comment.