Skip to content

Commit 5cdb8ac

Browse files
committed
lint job
1 parent 49073bf commit 5cdb8ac

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/lint.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test-package:
7+
name: Lint
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Python
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: "3.10"
15+
- name: Install Ruff
16+
run: |
17+
python -m pip install ruff>=0.5
18+
- name: Ruff
19+
run: |
20+
ruff format --check

tox.ini

-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ markers =
4242

4343
[testenv]
4444
commands =
45-
ruff format --check
4645
pytest {posargs}
4746
coverage report
4847
coverage xml
@@ -68,7 +67,6 @@ deps =
6867
pytest-xdist
6968
pytest-mock
7069
requests
71-
ruff>=0.5
7270
passenv =
7371
PYTEST_ADDOPTS
7472

0 commit comments

Comments
 (0)