diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a16e201..f506a8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: | diff --git a/pyproject.toml b/pyproject.toml index dd64447..4d47012 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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