Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
parallelism: 1
steps:
- checkout
- run: uv pip install -e ".[quality]"
- run: uv pip install -e ".[quality,serving]"
- run:
name: Show installed libraries and their versions
command: pip freeze | tee installed.txt
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ select = [
"SIM", # flake8-simplify
"S110", # bandit's try-except-pass rule
"C4", # flake8-comprehensions
"C901", # McCabe complexity
"RUF013", # Checks for the use of implicit Optional in type annotations when the default parameter value is None.
"PERF102", # Checks for uses of dict.items() that discard either the key or the value when iterating over the dictionary.
"PLC1802", # Checks for len calls on sequences in a boolean test context.
Expand All @@ -49,6 +50,7 @@ extend-safe-fixes = [
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
"examples/**/*.py" = ["C901"]
"src/transformers/file_utils.py" = ["F401"]
"src/transformers/utils/dummy_*.py" = ["F401"]

Expand All @@ -66,6 +68,9 @@ skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"

[tool.ruff.lint.mccabe]
max-complexity = 75

[tool.pytest.ini_options]
addopts = "--doctest-glob='**/*.md'"
doctest_optionflags="NUMBER NORMALIZE_WHITESPACE ELLIPSIS"
Expand Down
Loading
Loading