Skip to content

Commit

Permalink
update workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyIvan359 committed Sep 14, 2022
1 parent be2b1e7 commit d2b50d7
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 56 deletions.
104 changes: 50 additions & 54 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,74 +13,70 @@ on:

jobs:
black:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black \
-r requirements/mqttany.txt \
-r requirements/mqtt.txt \
-r requirements/i2c.txt \
-r requirements/led-rpi.txt \
-r requirements/led-sacn.txt
- name: Checking code format with black
run: |
black --version
black --check --verbose --diff --color ./mqttany
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black \
-r requirements/mqttany.txt \
-r requirements/mqtt.txt \
-r requirements/i2c.txt \
-r requirements/led-rpi.txt \
-r requirements/led-sacn.txt
- name: Checking code format with black
run: |
black --version
black --check --verbose --diff --color ./mqttany
# /black


pyright:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Setup node.js
uses: actions/setup-node@v2
with:
node-version: "12"

- name: Install pyright
run: |
npm install -g pyright
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/mqttany.txt \
-r requirements/mqtt.txt \
-r requirements/i2c.txt \
-r requirements/led-rpi.txt \
-r requirements/led-sacn.txt
- name: Checking code with pyright
run: |
pyright --version
pyright --project ./mqttany
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Setup node.js
uses: actions/setup-node@v2
with:
node-version: "12"

- name: Install pyright
run: |
npm install -g pyright
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/mqttany.txt \
-r requirements/mqtt.txt \
-r requirements/i2c.txt \
-r requirements/led-rpi.txt \
-r requirements/led-sacn.txt
- name: Checking code with pyright
run: |
pyright --version
pyright --project ./mqttany
# /pyright
21 changes: 19 additions & 2 deletions mqttany.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,30 @@
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"editor.renderWhitespace": "all",
"editor.formatOnSave": true,
"editor.rulers": [
88
],
"[python]": {
"editor.formatOnSave": true,
},
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.autoIndent": "keep",
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
}
},
"[markdown]": {
"editor.wordWrap": "on",
"editor.quickSuggestions": false,
"editor.quickSuggestions": {
"other": "off",
"comments": "off",
"strings": "off"
},
"files.trimTrailingWhitespace": false
}
},
Expand Down

0 comments on commit d2b50d7

Please sign in to comment.