Skip to content

Commit 24127dd

Browse files
committed
update workflows
1 parent 4356863 commit 24127dd

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ jobs:
2626
python -m pip install --upgrade pip
2727
pip install .[dev,doc]
2828
29-
- name: Lint with flake8
29+
- name: Lint with ruff
3030
run: |
31-
# stop the build if there are Python syntax errors or undefined names
32-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
33-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
ruff check
3532
3633
- name: Run unit tests
3734
shell: bash -l {0}

.github/workflows/tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ jobs:
2929
run: |
3030
python -m pip install --upgrade pip
3131
pip install .[dev,doc]
32-
- name: Lint with flake8
32+
- name: Lint with ruff
3333
run: |
34-
# stop the build if there are Python syntax errors or undefined names
35-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34+
ruff check
3835
- name: Test with pytest
3936
run: |
4037
pytest --cov=xrlint --cov-branch --cov-report=xml

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
- Improved overall test coverage.
1616

17-
- Using [isort](https://pycqa.github.io/isort/) to format import statements.
17+
- Switched to [ruff](https://docs.astral.sh/ruff/)
18+
as default linter and formatter.
1819

1920

2021
## Version 0.2.0 (14.01.2025)

0 commit comments

Comments
 (0)