mirror of
https://github.com/netbox-community/netbox-acls.git
synced 2026-06-01 18:58:58 +02:00
chore(devcontainer): Replace Python linter config with Ruff
Removes legacy linting/formatting configuration for black, isort, flake8, and pylint. Configures Ruff as the default Python formatter with format on save and explicit organize imports enabled.
This commit is contained in:
@@ -17,40 +17,19 @@
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {
|
||||
"editor.experimental.stickyScroll.enabled": true,
|
||||
//"[python]": {
|
||||
// "editor.codeActionsOnSave": {
|
||||
// "source.organizeImports": true
|
||||
// }
|
||||
//},
|
||||
"isort.args": ["--profile=black"],
|
||||
"isort.path": ["/opt/netbox/venv/bin/isort"],
|
||||
"[python]": {
|
||||
"editor.formatOnSave": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll": "explicit",
|
||||
"source.organizeImports": "explicit"
|
||||
},
|
||||
"editor.defaultFormatter": "charliermarsh.ruff"
|
||||
},
|
||||
"ruff.path": ["/opt/netbox/venv/bin/ruff"],
|
||||
"python.analysis.typeCheckingMode": "strict",
|
||||
"python.analysis.extraPaths": ["/opt/netbox/netbox"],
|
||||
"python.autoComplete.extraPaths": ["/opt/netbox/netbox"],
|
||||
"python.defaultInterpreterPath": "/opt/netbox/venv/bin/python3",
|
||||
"python.formatting.autopep8Path": "/opt/netbox/venv/bin/autopep8",
|
||||
"python.formatting.blackPath": "/opt/netbox/venv/bin/black",
|
||||
"python.formatting.provider": "black",
|
||||
"python.formatting.yapfPath": "/opt/netbox/venv/bin/yapf",
|
||||
"python.linting.banditPath": "/opt/netbox/venv/bin/bandit",
|
||||
"python.linting.enabled": true,
|
||||
"python.linting.flake8Path": "/opt/netbox/venv/bin/flake8",
|
||||
"python.linting.flake8Args": ["--max-line-length=160", "--ignore=E203"],
|
||||
"python.linting.mypyPath": "//opt/netbox/venv/bin/mypy",
|
||||
"python.linting.pycodestylePath": "/opt/netbox/venv/bin/pycodestyle",
|
||||
"python.linting.pydocstylePath": "/opt/netbox/venv/bin/pydocstyle",
|
||||
"python.linting.pylintArgs": [
|
||||
"--load-plugins",
|
||||
"pylint_django",
|
||||
"--errors-only",
|
||||
"--load-plugins=pylint_django",
|
||||
"--django-settings-module=/opt/netbox/netbox/netbox/netbox.settings",
|
||||
"--enable=W0602,W0611,W0612,W0613,W0614"
|
||||
],
|
||||
"python.linting.pylintEnabled": true,
|
||||
"python.linting.pylintPath": "/opt/netbox/venv/bin/pylint",
|
||||
"python.linting.lintOnSave": true,
|
||||
"python.pythonPath": "/opt/netbox/venv/bin/python3",
|
||||
"python.terminal.activateEnvironment": true,
|
||||
"python.venvPath": "/opt/netbox/",
|
||||
"files.exclude": {
|
||||
@@ -77,8 +56,6 @@
|
||||
"exiasr.hadolint",
|
||||
"formulahendry.auto-rename-tag",
|
||||
"mintlify.document",
|
||||
"ms-python.isort",
|
||||
"ms-python.pylint",
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-vscode.makefile-tools",
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
autoflake
|
||||
autopep8
|
||||
bandit
|
||||
black
|
||||
coverage
|
||||
flake8
|
||||
isort
|
||||
mypy
|
||||
pre-commit
|
||||
pycodestyle
|
||||
pydocstyle
|
||||
pylint
|
||||
pylint-django
|
||||
ruff
|
||||
sourcery-analytics
|
||||
wily
|
||||
|
||||
Reference in New Issue
Block a user