Skip to content

Commit

Permalink
Update CI to use ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Oct 25, 2023
1 parent 3d09596 commit e043a1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# run: python3 -m ruff tests/

run-formatter:
name: Format
name: Ruff Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -60,5 +60,5 @@ jobs:
- name: Install the `sdr` package
run: python3 -m pip install .

- name: Format with black
run: python3 -m black . --check
- name: Format with ruff
run: python3 -m ruff format --check .
14 changes: 0 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,6 @@ ignore = ["E501", "E713", "E714"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]

[tool.black]
line-length = 120
exclude = '''
/(
build
)/
| src/sdr/_version.py
'''
# NOTE: You must use single-quoted strings in TOML for regular expressions. It's the equivalent of r-strings in Python.
# For some reason, this exclude line doesn't work when on a single line.

[tool.isort]
profile = "black"

[tool.pytest.ini_options]
minversion = "6.2"
addopts = "-s --showlocals"
Expand Down

0 comments on commit e043a1e

Please sign in to comment.