-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add Ruff GitHub Workflow (#12)
* feat: added ruff linter with auto fix Signed-off-by: error9098x <provantablack@gmail.com> * fix: added ruff.toml and replaced with pyproject.toml Signed-off-by: error9098x <provantablack@gmail.com> * fix: rename the workflow Signed-off-by: error9098x <provantablack@gmail.com> * fix ruff ci Signed-off-by: Jack Luar <39641663+luarss@users.noreply.github.com> * fix ruff Signed-off-by: Jack Luar <39641663+luarss@users.noreply.github.com> * cleanup workflow Signed-off-by: Jack Luar <39641663+luarss@users.noreply.github.com> * update docs Signed-off-by: Jack Luar <39641663+luarss@users.noreply.github.com> * Update ruff_linter.yml Signed-off-by: Jack Luar <39641663+luarss@users.noreply.github.com> * Update ruff_linter.yml Signed-off-by: Song Luar <luar.shuisong@gmail.com> * Update api.py Signed-off-by: Song Luar <luar.shuisong@gmail.com> --------- Signed-off-by: error9098x <provantablack@gmail.com> Signed-off-by: Jack Luar <39641663+luarss@users.noreply.github.com> Signed-off-by: Song Luar <luar.shuisong@gmail.com> Co-authored-by: Jack Luar <39641663+luarss@users.noreply.github.com> Co-authored-by: Song Luar <luar.shuisong@gmail.com>
- Loading branch information
1 parent
8ec4b28
commit f64c791
Showing
10 changed files
with
166 additions
and
55 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,26 @@ | ||
name: Ruff | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Install Ruff | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff==0.5.1 | ||
- name: Run Ruff Check | ||
run: | | ||
ruff check | ||
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
read_question_and_description, | ||
) | ||
|
||
|
||
def main() -> None: | ||
load_dotenv() | ||
|
||
|
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
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.