Skip to content

Commit

Permalink
ci: run yapf and isort to enforce code style
Browse files Browse the repository at this point in the history
  • Loading branch information
wookayin committed Dec 26, 2023
1 parent 918bb4c commit 0182447
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ jobs:
run: |
python --version
- name: Enforce code style
run: |
pip install yapf isort
yapf --recursive --diff semshi/ test/
isort --check-only --diff semshi/ test/
if: ${{ matrix.python-version == '3.11' }}

- name: Setup neovim
run: |
sudo apt install libfuse2
Expand Down Expand Up @@ -69,13 +76,6 @@ jobs:
- name: Install dependencies
run: |
pip install pytest codecov pytest-cov
pip install pyproject-flake8
- name: Linting
run: |
pflake8 semshi/
# pylint semshi/
if: ${{ matrix.python-version == '3.11' }}
- name: Run tests
run: |
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ profile = "black"
single_line_exclusions = ['typing', 'typing_extensions']
extra_standard_library = ['typing_extensions']
known_third_party = []
skip_glob = ['test/data/*.py']

[tool.yapf]
# see https://github.com/google/yapf#knobs
Expand Down

0 comments on commit 0182447

Please sign in to comment.