1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-16 15:17:28 +00:00

full on ruff

This commit is contained in:
Anson 2023-11-30 21:49:56 -07:00
parent b3769b24d8
commit d3b75984a6
3 changed files with 3 additions and 5 deletions

View File

@ -8,7 +8,7 @@ ruff:
image: python:3.11-slim image: python:3.11-slim
script: script:
- pip3 install ruff - pip3 install ruff
- ruff --output-format gitlab . - ruff . --output-format gitlab; ruff format . --diff
prettier: prettier:
stage: lint stage: lint

View File

@ -3,7 +3,7 @@
"editor.formatOnPaste": true, "editor.formatOnPaste": true,
"editor.formatOnSaveMode": "modificationsIfAvailable", "editor.formatOnSaveMode": "modificationsIfAvailable",
"[python]": { "[python]": {
"editor.defaultFormatter": "ms-python.black-formatter", "editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.formatOnSaveMode": "file" "editor.formatOnSaveMode": "file"
} }

View File

@ -1,6 +1,5 @@
-r common/requirements.txt -r common/requirements.txt
-r site/requirements.txt -r site/requirements.txt
black==23.9.1
ipython==8.16.1 ipython==8.16.1
jupyter_client==8.4.0 jupyter_client==8.4.0
jupyter_core==5.4.0 jupyter_core==5.4.0
@ -8,5 +7,4 @@ pylama==8.4.1
mypy==1.5.1 mypy==1.5.1
types-cachetools==5.3.0.6 types-cachetools==5.3.0.6
types-pytz==2023.3.1.1 types-pytz==2023.3.1.1
ruff==0.0.292 ruff==0.1.6
isort==5.12.0