Skip to content

Commit

Permalink
move ruff to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlKCarlK committed Oct 15, 2024
1 parent 5243344 commit f20bdae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
os: [ubuntu-latest] # cmk, windows-latest, macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down Expand Up @@ -164,21 +164,16 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install flake8, etc
- name: Install ruff
run: |
cd bed_reader
pwd
python -m pip install --upgrade pip
pip install flake8 pytest black isort --upgrade
- name: Lint with flake8, etc
pip install ruff --upgrade
- name: Lint with ruff
run: |
echo "flake8"
flake8 .
echo "black"
black --version
black --verbose --check .
echo "isort"
isort --check-only .
echo "ruff"
ruff check .
- name: Test Python - Non-Windows
if: runner.os != 'Windows'
run: |
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ exclude = ["*.ipynb"]
[tool.ruff.lint]
select = ["E", "F", "W"]
# ignore = ["E501", "E741", "E203", "E743"]

[tool.pytest.ini_options]
addopts = "--doctest-modules --doctest-glob=*.rst --doctest-glob=*.md"
doctest_optionflags = "ELLIPSIS"
6 changes: 0 additions & 6 deletions pytest.ini

This file was deleted.

0 comments on commit f20bdae

Please sign in to comment.