Skip to content

Commit

Permalink
chore(ci): remove black from CI, we already use ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
tengomucho committed Jan 29, 2025
1 parent b797c14 commit c84afc9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/check_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ jobs:
source venv/bin/activate
pip install --upgrade pip
pip install .[quality]
- name: Check style with black
run: |
source venv/bin/activate
black --check .
- name: Check style with ruff
run: |
source venv/bin/activate
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ transformers_examples:

# Run code quality checks
style_check:
black --check .
ruff check .

style:
black .
ruff check . --fix

# Utilities to release to PyPi
Expand Down
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
requires = ["setuptools==69.5.1"]
build-backend = "setuptools.build_meta"

[tool.black]
line-length = 119
target-version = ['py38']
extend-exclude = '.ipynb'

[tool.ruff]
line-length = 119

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
]

QUALITY_REQUIRES = [
"black",
"ruff",
"isort",
"hf_doc_builder @ git+https://github.com/huggingface/doc-builder.git",
Expand Down
1 change: 0 additions & 1 deletion tools/create_examples_from_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ def main():
fp.write(processed_content)

# Linting and styling.
subprocess.run(["black", f"{args.dest}"])
subprocess.run(["ruff", f"{args.dest}", "--fix"])


Expand Down

0 comments on commit c84afc9

Please sign in to comment.