forked from quantopian/zipline
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Move to exchange-calendars 4.x and more (#158)
* replace deprecated abstractproperty * removed deprecated __unicode__ * bump up pytest to >= 7.2.0 * remove unecessary object class declaration * cleanup metaclass declaration * replace logbook with logging (#16) * fix B904 flak8-bugbear warnings * replaced logbook with logging * replace logbook with logging (#17) * fix B904 flak8-bugbear warnings * change import style for logbook * replaced with logging * replaced logbook with logging * changes to utils path * wip sqlalchemy2.0 * exchange-calendar 4 * mock is part of unittest * fix cmdline start end * separate lint from test workflow * enable black formatting workflow check * separate black and lint from workflow * drop python 3.7 support
- Loading branch information
Showing
190 changed files
with
4,610 additions
and
5,277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,35 @@ on: | |
- cron: "0 9 * * 6" | ||
|
||
jobs: | ||
black-format: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable | ||
with: | ||
options: "--check --diff" | ||
src: "./src ./tests" | ||
|
||
flake8-lint: | ||
name: Lint Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: flake8 Lint | ||
uses: py-actions/flake8@v2 | ||
|
||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
python-version: [ '3.7', '3.8', '3.9', '3.10' ] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ["3.8", "3.9", "3.10"] | ||
exclude: | ||
- os: windows-latest | ||
python-version: 3.9 | ||
|
@@ -51,10 +73,6 @@ jobs: | |
python -m pip install tox tox-gh-actions | ||
python -m pip install .[test] | ||
- name: Lint with flake8 | ||
run: | | ||
flake8 | ||
- name: Unittests with tox & pytest | ||
uses: nick-fields/retry@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,35 @@ on: | |
- main | ||
|
||
jobs: | ||
black-format: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable | ||
with: | ||
options: "--check --diff" | ||
src: "./src ./tests" | ||
|
||
flake8-lint: | ||
name: Lint Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: flake8 Lint | ||
uses: py-actions/flake8@v2 | ||
|
||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ['3.10'] | ||
python-version: ["3.10"] | ||
|
||
steps: | ||
- name: Checkout Zipline | ||
|
@@ -50,10 +72,6 @@ jobs: | |
python -m pip install tox tox-gh-actions | ||
python -m pip install .[test] | ||
- name: Lint with flake8 | ||
run: | | ||
flake8 | ||
- name: Unittests with tox & pytest | ||
uses: nick-fields/retry@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.