Skip to content

Commit

Permalink
#54 fix: format setting
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutaj committed Aug 25, 2021
1 parent d4360bc commit f17f6b6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1

- name: Set up Python
uses: actions/setup-python@v1
- name: Set up Python
uses: actions/setup-python@v1

- name: Install dependencies
run: |
pip3 install .[dev]
- name: Install dependencies
run: |
pip3 install .[dev]
- name: Run tests
run: |
ss-manager -h
flake8 statements_manager/ setup.py
black --check --diff statements_manager/ setup.py
mypy statements_manager/ setup.py
- name: Run tests
run: |
ss-manager -h
flake8 statements_manager/ setup.py
isort statements_manager/ setup.py --check --diff
black --check --diff statements_manager/ setup.py
mypy statements_manager/ setup.py
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"python.pythonPath": "virtualenv/bin/python",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.pylintArgs": ["--rcfile=setup.cfg"],
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
}
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers =
[options.extras_require]
dev =
flake8
isort
black
mypy

Expand Down

0 comments on commit f17f6b6

Please sign in to comment.