Skip to content

Commit

Permalink
chore(vscode): update settings (#140)
Browse files Browse the repository at this point in the history
* chore(vscode): update settings
* chore: add `Makefile`
* fix(deps): update
  • Loading branch information
DeadNews authored Jan 4, 2024
1 parent a35364e commit 5875049
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 113 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- id: actionlint

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.1.11
hooks:
- id: ruff-format
- id: ruff
Expand Down
7 changes: 5 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
// List of extensions which should be recommended for users of this workspace.
"recommendations": ["ms-python.python", "charliermarsh.ruff"]
"recommendations": [
"charliermarsh.ruff",
"ms-python.mypy-type-checker",
"ms-python.python"
]
}
7 changes: 2 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
}
},
// mypy
"python.linting.mypyEnabled": true,
// pytest
"python.testing.pytestEnabled": true
}
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.PHONY: install test

install:
poetry install --sync

lint:
poetry run poe lint

test:
poetry run pytest

pc-run:
pre-commit run -a

pc-install:
pre-commit install

poetry-up:
poetry up --latest
Loading

0 comments on commit 5875049

Please sign in to comment.