mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-16 04:18:35 +00:00
Feat: Add Ruff to improve linting/formatting (#588)
* fix: fix test actually running * fix: fix test to not send request to openai * fix: fix linting to remove cli files * fix: exclude only files that breaks black * fix: Fix all Ruff checkings on the code and Fix Test with repeated name * fix: Change linter name on yml file * feat: update pre-commit * feat: remove need for isort on the code * feat: remove black linter * feat: update tests yml to try to fix the tests gh action
This commit is contained in:
committed by
GitHub
parent
04b4191de5
commit
aeba64feaf
@@ -10,7 +10,7 @@ jobs:
|
||||
|
||||
- name: Install Requirements
|
||||
run: |
|
||||
pip install black
|
||||
pip install ruff
|
||||
|
||||
- name: Run Black
|
||||
run: black . --exclude "cli/templates/crew.py" --extend-exclude "cli/templates/main.py"
|
||||
- name: Run Ruff Linter
|
||||
run: ruff check --exclude "templates","__init__.py"
|
||||
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -14,12 +14,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Install Requirements
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user