Skip to content

Commit 74fd31d

Browse files
committed
Update everything to LSEG
1 parent 2dbd13e commit 74fd31d

33 files changed

+2673
-2118
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/continuous-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
shell: bash
3636
working-directory: docs
3737
env:
38-
RDP_APP_KEY: ${{ secrets.RDP_APP_KEY }}
39-
RDP_USERNAME: ${{ secrets.RDP_USERNAME }}
40-
RDP_PASSWORD: ${{ secrets.RDP_PASSWORD }}
38+
LSEG_APP_KEY: ${{ secrets.LSEG_APP_KEY }}
39+
LSEG_USERNAME: ${{ secrets.LSEG_USERNAME }}
40+
LSEG_PASSWORD: ${{ secrets.LSEG_PASSWORD }}
4141

4242
- name: Upload release candidate
4343
uses: actions/upload-artifact@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Repo specific stuff
22
refinitiv-data.config.json
3+
lseg-data.config.json
34
jupyter_execute
5+
_notebook.ipynb
46

57
# Byte-compiled / optimized / DLL files
68
__pycache__/

.pre-commit-config.yaml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
6-
hooks:
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
- id: check-yaml
10-
- id: check-added-large-files
11-
- id: check-byte-order-marker
12-
- id: check-case-conflict
13-
- id: check-json
14-
- id: mixed-line-ending
15-
- id: check-ast
16-
- id: check-merge-conflict
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v6.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- id: fix-byte-order-marker
12+
- id: check-case-conflict
13+
- id: check-json
14+
- id: mixed-line-ending
15+
- id: check-ast
16+
- id: check-merge-conflict
1717

18-
- repo: https://github.com/psf/black
19-
rev: 23.3.0
20-
hooks:
21-
- id: black
18+
- repo: https://github.com/psf/black
19+
rev: 25.9.0
20+
hooks:
21+
- id: black
2222

23-
- repo: https://github.com/asottile/blacken-docs
24-
rev: 1.13.0
25-
hooks:
26-
- id: blacken-docs
27-
additional_dependencies: [black]
23+
- repo: https://github.com/asottile/blacken-docs
24+
rev: 1.20.0
25+
hooks:
26+
- id: blacken-docs
27+
additional_dependencies: [black]
2828

29-
- repo: https://github.com/timothycrosley/isort
30-
rev: 5.12.0
31-
hooks:
32-
- id: isort
33-
args: ["--profile", "black", "--filter-files"]
29+
- repo: https://github.com/timothycrosley/isort
30+
rev: 7.0.0
31+
hooks:
32+
- id: isort
33+
args: ["--profile", "black", "--filter-files"]
3434

35-
- repo: https://github.com/pycqa/flake8
36-
rev: 6.0.0
37-
hooks:
38-
- id: flake8
39-
additional_dependencies:
40-
- flake8-bugbear
41-
- flake8-docstrings
42-
- flake8-simplify
43-
- pep8-naming
35+
- repo: https://github.com/pycqa/flake8
36+
rev: 7.3.0
37+
hooks:
38+
- id: flake8
39+
additional_dependencies:
40+
- flake8-bugbear
41+
- flake8-docstrings
42+
- flake8-simplify
43+
- pep8-naming
4444

45-
- repo: https://github.com/asottile/pyupgrade
46-
rev: v3.4.0
47-
hooks:
48-
- id: pyupgrade
49-
args: [--py37-plus]
45+
- repo: https://github.com/asottile/pyupgrade
46+
rev: v3.21.0
47+
hooks:
48+
- id: pyupgrade
49+
args: [--py37-plus]
5050

51-
- repo: https://github.com/pre-commit/mirrors-mypy
52-
rev: v1.3.0
53-
hooks:
54-
- id: mypy
55-
additional_dependencies:
56-
- types-requests
51+
- repo: https://github.com/pre-commit/mirrors-mypy
52+
rev: v1.18.2
53+
hooks:
54+
- id: mypy
55+
additional_dependencies:
56+
- types-requests

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
3+
"python.terminal.activateEnvironment": true,
4+
"jupyter.notebookFileRoot": "${workspaceFolder}",
5+
"jupyter.interactiveWindow.cellMarker.codeRegex": "^(#\\s*%%|#\\s*\\<codecell\\>|#\\s*In\\[\\d*\\]:|#\\s*In\\[ \\]:|#\\s*cell)",
6+
"jupyter.interactiveWindow.cellMarker.default": "# %%",
7+
"python.analysis.extraPaths": [
8+
"${workspaceFolder}"
9+
],
10+
"editor.formatOnSave": true
11+
}

Makefile

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
#
2+
# Colors
3+
#
4+
5+
# Define ANSI color codes
6+
RESET_COLOR = \033[m
7+
8+
BLUE = \033[1;34m
9+
YELLOW = \033[1;33m
10+
GREEN = \033[1;32m
11+
RED = \033[1;31m
12+
BLACK = \033[1;30m
13+
MAGENTA = \033[1;35m
14+
CYAN = \033[1;36m
15+
WHITE = \033[1;37m
16+
17+
DBLUE = \033[0;34m
18+
DYELLOW = \033[0;33m
19+
DGREEN = \033[0;32m
20+
DRED = \033[0;31m
21+
DBLACK = \033[0;30m
22+
DMAGENTA = \033[0;35m
23+
DCYAN = \033[0;36m
24+
DWHITE = \033[0;37m
25+
26+
BG_WHITE = \033[47m
27+
BG_RED = \033[41m
28+
BG_GREEN = \033[42m
29+
BG_YELLOW = \033[43m
30+
BG_BLUE = \033[44m
31+
BG_MAGENTA = \033[45m
32+
BG_CYAN = \033[46m
33+
34+
# Name some of the colors
35+
COM_COLOR = $(DBLUE)
36+
OBJ_COLOR = $(DCYAN)
37+
OK_COLOR = $(DGREEN)
38+
ERROR_COLOR = $(DRED)
39+
WARN_COLOR = $(DYELLOW)
40+
NO_COLOR = $(RESET_COLOR)
41+
42+
OK_STRING = "[OK]"
43+
ERROR_STRING = "[ERROR]"
44+
WARN_STRING = "[WARNING]"
45+
46+
define banner
47+
@echo " $(WHITE)__________$(RESET_COLOR)"
48+
@echo "$(WHITE) |$(DWHITE) PALEWIRE $(RESET_COLOR)$(WHITE)|$(RESET_COLOR)"
49+
@echo "$(WHITE) |&&& ======|$(RESET_COLOR)"
50+
@echo "$(WHITE) |=== ======|$(RESET_COLOR) $(DWHITE)This is a $(RESET_COLOR)$(DBLACK)$(BG_WHITE)palewire$(RESET_COLOR)$(DWHITE) automation$(RESET_COLOR)"
51+
@echo "$(WHITE) |=== == %%%|$(RESET_COLOR)"
52+
@echo "$(WHITE) |[_] ======|$(RESET_COLOR) $(1)"
53+
@echo "$(WHITE) |=== ===!##|$(RESET_COLOR)"
54+
@echo "$(WHITE) |__________|$(RESET_COLOR)"
55+
@echo ""
56+
endef
57+
58+
#
59+
# Python helpers
60+
#
61+
62+
PIPENV := pipenv run
63+
PYTHON := python -W ignore -m
64+
65+
#
66+
# Commands
67+
#
68+
69+
serve: ## Test the site
70+
$(call banner, 🧪 Serving test site 🧪)
71+
@rm -rf docs/_build
72+
@rm -rf docs/_build_html
73+
@rm -rf docs/jupyter_execute
74+
@cd docs && $(PIPENV) python createconf.py
75+
@cd docs && $(PIPENV) make livehtml
76+
77+
78+
build: ## Build a release candidate
79+
$(call banner,🏗️ Building release candidate 🏗️)
80+
@cd docs && pipenv run sphinx-build -b html src _build
81+
@mkdir -p docs/_build/_extra/
82+
@mkdir _dist/
83+
@pipenv run jupyter lite build --contents ./jupyterlite/ --output-dir=./_dist/
84+
@mv ./_dist/* docs/_build/_extra/
85+
86+
#
87+
# Extras
88+
#
89+
90+
format: ## automatically format Python code with black
91+
$(call banner, 🪥 Cleaning code 🪥)
92+
@$(PIPENV) black .
93+
94+
95+
help: ## Show this help. Example: make help
96+
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
97+
98+
99+
# Mark all the commands that don't have a target
100+
.PHONY: help \
101+
format \
102+
serve

Pipfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jupyterlab = "*"
2727
pandas = "*"
2828
myst-nb = "*"
2929
sphinx-multitoc-numbering = "*"
30-
refinitiv-data = "*"
30+
lseg-data = "*"
3131
sphinx-palewire-theme = "*"
3232

3333
[requires]
34-
python_version = "3.10"
34+
python_version = "3.13"

0 commit comments

Comments
 (0)