Skip to content

Commit

Permalink
Add pyproject.toml (huggingface#690)
Browse files Browse the repository at this point in the history
* example pyproject.toml

* update target to py38

* make pyproject.toml equivalent to accelerate
  • Loading branch information
mnoukhov authored and Andrew Lapp committed May 10, 2024
1 parent e6d35da commit 8d1d400
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[tool.black]
line-length = 119
target-version = ['py38']

[tool.ruff]
ignore = ["E501", "E741", "W605"]
select = ["E", "F", "I", "W"]
line-length = 119

# Ignore import violations in all `__init__.py` files.
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]

[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["trl"]

0 comments on commit 8d1d400

Please sign in to comment.