-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor into Poetry project, update dependencies (#161)
* Initialise Poetry project * Add format.yml workflow * Format Python code with Ruff * Delete requirements.txt * Fix relative imports * Add test.yml workflow * Remove old main.yml workflow * Update usage instructions to work with Poetry * Update CI badge to tests workflow * Change 'tests' -> 'test' --------- Co-authored-by: IsaacCheng9 <IsaacCheng9@users.noreply.github.com>
- Loading branch information
1 parent
bc06f04
commit d190947
Showing
23 changed files
with
1,199 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Format | ||
|
||
on: [push] | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.12.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run Python code formatting with Ruff | ||
uses: chartboost/ruff-action@main | ||
with: | ||
args: "format --exclude src/trading_portfolio_tracker/ui" | ||
|
||
- name: Commit changes made by Ruff | ||
uses: stefanzweifel/git-auto-commit-action@master | ||
with: | ||
commit_message: Format Python code with Ruff | ||
|
||
- name: Switch to current branch | ||
run: git checkout ${{ env.BRANCH }} | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@main | ||
with: | ||
python-version: ${{ matrix.python-version }} |
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.