Skip to content

Commit

Permalink
🔧 vscode ruff and mypy configuration file path
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseRZapata committed Nov 17, 2024
1 parent a9e78fc commit d34ddb2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
9 changes: 6 additions & 3 deletions {{cookiecutter.repo_name}}/.code_quality/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,16 @@ fixable = ["ALL"]
unfixable = []

[format]
# select = ["E4", "E7", "E9", "F"]
# exclude = ["*.ipynb"]
# ignore = []
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings.
docstring-code-format = true

[lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
Expand Down
13 changes: 11 additions & 2 deletions {{cookiecutter.repo_name}}/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.rulers": [100]
"editor.rulers": [88]
},
"notebook.formatOnSave.enabled": true,
"notebook.defaultFormatter": "charliermarsh.ruff",
Expand Down Expand Up @@ -35,5 +35,14 @@
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
"markdownlint.config": {
"MD007": {"indent": 4}
}
},
"ruff.lint.args": [
"--config=.code_quality/ruff.toml"
],
"ruff.format.args": [
"--config=.code_quality/ruff.toml"
],
"mypy-type-checker.args": [
"--config-file=.code_quality/mypy.ini"
]
}

0 comments on commit d34ddb2

Please sign in to comment.