Skip to content

Commit

Permalink
update ruff to support native language server
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkersigirci committed Aug 3, 2024
1 parent 10878ab commit cbb22f0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 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.4.2
rev: v0.5.6
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"python.languageServer": "Pylance",
// "python.analysis.autoImportCompletions": true,
"ruff.nativeServer": "on",
"autoDocstring.generateDocstringOnEnter": true,
"autoDocstring.docstringFormat": "google",
"autoDocstring.customTemplatePath": "docs/templates/google-notypes.mustache",
Expand Down
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.4.2
pip install ruff==0.5.6

install-doc:
pip install mkdocs mkdocs-material mkdocstrings[python]
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies = []
managed = true
dev-dependencies = [
"pre-commit",
"ruff==0.4.2",
"ruff==0.5.6",
"mypy",
"scalene~=1.5.21.2",
## DOCS
Expand Down Expand Up @@ -89,7 +89,7 @@ log_cli_format = "%(asctime)-20s :: %(name)-8s :: %(levelname)-8s :: %(filename)
log_cli_date_format = "%Y-%m-%d %H:%M:%S"

[tool.ruff]
target-version = "py310"
target-version = "py311"
line-length = 88
src = ["src"]
respect-gitignore = true
Expand Down
4 changes: 3 additions & 1 deletion requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
asttokens==2.4.1
Expand Down Expand Up @@ -176,7 +178,7 @@ requests==2.31.0
# via mkdocs-material
rich==13.7.1
# via scalene
ruff==0.4.2
ruff==0.5.6
scalene==1.5.21.4
setuptools==69.5.1
# via nodeenv
Expand Down
2 changes: 2 additions & 0 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.

0 comments on commit cbb22f0

Please sign in to comment.