Skip to content

Commit

Permalink
Both lint and format templates with ruff v0.1.3. (langchain-ai#12676)
Browse files Browse the repository at this point in the history
- Both lint and format code in `templates`.
- Upgrade to ruff v0.1.3.
  • Loading branch information
obi1kenobi authored and HoaNQ9 committed Feb 2, 2024
1 parent 760c5df commit 86c4a13
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
38 changes: 19 additions & 19 deletions templates/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions templates/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pytest-watch = "^4.2.0"
pytest = "^7.4.3"

[tool.poetry.group.lint.dependencies]
ruff = "^0.1"
ruff = "^0.1.3"

[tool.poetry.group.typing.dependencies]

Expand All @@ -33,10 +33,14 @@ select = [
[tool.poe.tasks]
test = "poetry run pytest"
watch = "poetry run ptw"
lint = "poetry run ruff ."
format = "poetry run ruff . --fix"
lint = ["_lint", "_check_formatting"]
format = ["_lint_fix", "_format"]

_check_formatting = "poetry run ruff format . --diff"
_lint = "poetry run ruff ."
_format = "poetry run ruff format ."
_lint_fix = "poetry run ruff . --fix"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"

0 comments on commit 86c4a13

Please sign in to comment.