diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..cef9bc9 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + schedule: + - cron: "11 13 * * 3" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ python ] + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index e19bba2..56336f6 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.6', '3.7', '3.8'] + python-version: ['3.7', '3.8', '3.9'] WITH_PANDAS: [false, true] steps: diff --git a/requirements_dev.txt b/requirements_dev.txt index 1cda5fb..ab92fc7 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -4,7 +4,7 @@ wheel==0.38.4 watchdog==2.1.9 flake8==5.0.4 tox==3.26.0 -coverage==6.5.0 +coverage==7.2.2 cryptography==40.0.1 Sphinx==5.3.0 PyYAML==6.0 @@ -12,4 +12,4 @@ pytest==7.1.3 pytest-runner==6.0.0 vcrpy==2.1.1 twine==4.0.2 -black==22.10.0 +black==23.1.0 diff --git a/tiingo/api.py b/tiingo/api.py index 9bd90b2..11f647c 100644 --- a/tiingo/api.py +++ b/tiingo/api.py @@ -265,7 +265,6 @@ class TiingoClient(RestClient): frequency="daily", fmt="json", ): - """Return a pandas.DataFrame of historical prices for one or more ticker symbols. By default, return latest EOD Composite Price for a list of stock tickers. diff --git a/tiingo/wsclient.py b/tiingo/wsclient.py index 63a7ff1..2f3ec6a 100644 --- a/tiingo/wsclient.py +++ b/tiingo/wsclient.py @@ -40,7 +40,6 @@ class TiingoWebsocketClient: """ def __init__(self, config=None, endpoint=None, on_msg_cb=None): - self._base_url = "wss://api.tiingo.com" self.config = {} if config is None else config