Merge branch 'develop' into feature/charting-obbject

This commit is contained in:
Henrique Joaquim
2024-01-29 12:26:33 +00:00
committed by GitHub
8 changed files with 598 additions and 596 deletions

View File

@@ -61,7 +61,7 @@ jobs:
restore-keys: ${{ runner.os }}-linting-${{ hashFiles('**/poetry.lock') }}
- run: |
pip install bandit black codespell==2.2.5 mypy==1.5.1 pylint==2.17.0 ruff==0.0.285
pip install openbb-devtools
pip install types-pytz types-requests types-termcolor types-tabulate types-PyYAML types-python-dateutil types-setuptools types-six
- run: bandit -x ./tests -r . || true
- run: black --diff --check .

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "openbb-devtools"
version = "1.1.1"
version = "1.1.2"
description = "Tools for OpenBB Platform Developers"
authors = ["OpenBB Team <hello@openbb.co>"]
readme = "README.md"
@@ -12,8 +12,9 @@ ruff = "^0.1.5"
pylint = "^3.0.2"
mypy = "^1.6.1"
pydocstyle = "^6.3.0"
black = "^23.11.0"
black = "^24.1.0"
bandit = "^1.7.5"
codespell = "^2.2.5"
pre-commit = "^3.5.0"
tox = "^4.11.3"
pytest = "^7.4.3"

View File

@@ -945,7 +945,7 @@ def check_finnhub_key(show_output: bool = False) -> str:
if current_user.credentials.API_FINNHUB_KEY == "REPLACE_ME":
status = KeyStatus.NOT_DEFINED
else:
r = r = request(
r = request(
f"https://finnhub.io/api/v1/quote?symbol=AAPL&token={current_user.credentials.API_FINNHUB_KEY}"
)
if r.status_code in [403, 401, 400]:

View File

@@ -293,9 +293,10 @@ def get_financials(symbol: str, statement: str, ratios: bool = False) -> pd.Data
)
# Making the website believe that you are accessing it using a Mozilla browser
req = Request(url, headers={"User-Agent": "Mozilla/5.0"})
req = Request(url, headers={"User-Agent": "Mozilla/5.0"}) # noqa: S310
webpage = urlopen(req).read() # pylint: disable= R1732 # noqa: S310
with urlopen(req) as response: # noqa: S310
webpage = response.read()
soup = BeautifulSoup(webpage, "html.parser")
features = soup.find_all("div", class_="D(tbr)")

View File

@@ -176,7 +176,7 @@ After installation, the Python interface will automatically rebuild on initializ
## Technical
The `openbb-technical` extension is for performing technical analysis on time series data. It installs a new router path (`obb.techincal`) and some additional Python libraries:
The `openbb-technical` extension is for performing technical analysis on time series data. It installs a new router path (`obb.technical`) and some additional Python libraries:
- pandas-ta
- scikit-learn

View File

@@ -73,7 +73,7 @@ add mu
### Technical
With a list of similar companies populated, the `techincal` command will compare recent price performance metrics.
With a list of similar companies populated, the `technical` command will compare recent price performance metrics.
```console
technical

View File

@@ -27,7 +27,7 @@ import TutorialVideo from '@site/src/components/General/TutorialVideo.tsx';
<TutorialVideo
youtubeLink="https://www.youtube.com/embed/cgeN3Ep2nEw?si=YR6l4AfhhJjxzH0H"
videoLegend="Long video on using VIA to configre my Keychron keyboard for OpenBB"
videoLegend="Long video on using VIA to configure my Keychron keyboard for OpenBB"
/>
This document will explain how you can set hotkeys macros on your customizable keyboard which allow you to perform investment research in a few seconds.