Skip to content

Commit

Permalink
related changes for ruff upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkersigirci committed Aug 9, 2024
1 parent 8fb6f40 commit a75d190
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
- id: python-use-type-annotations

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.6
rev: v0.5.7
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
7 changes: 3 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
// "source.fixAll": "always",
"source.organizeImports.ruff": "explicit",
"source.organizeImports": "explicit",
},
"editor.rulers": [
{
Expand All @@ -25,8 +24,8 @@
// "python.testing.pytestArgs": [],
"notebook.formatOnSave.enabled": true,
"notebook.codeActionsOnSave": {
// "source.fixAll.ruff": "always",
"source.organizeImports.ruff": "explicit",
// "notebook.source.fixAll": "always",
"notebook.source.organizeImports": "explicit",
},
"evenBetterToml.formatter.reorderKeys": true,
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ install-precommit: ## Install pre-commit hooks
pre-commit install

install-lint:
pip install ruff==0.5.6
pip install ruff==0.5.7

install-doc:
pip install mkdocs mkdocs-material mkdocstrings[python]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies = [
managed = true
dev-dependencies = [
"pre-commit",
"ruff==0.5.6",
"ruff==0.5.7",
"mypy",
"scalene~=1.5.21.2",
## DOCS
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ requests==2.31.0
rich==13.7.1
# via scalene
# via typer
ruff==0.5.6
ruff==0.5.7
safetensors==0.4.4
# via transformers
scalene==1.5.21.4
Expand Down

0 comments on commit a75d190

Please sign in to comment.