Skip to content

Commit ea1bb21

Browse files
committed
Add ruff
1 parent d217be5 commit ea1bb21

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/test.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,18 @@ jobs:
1515
- name: Install dependencies
1616
run: |
1717
python -m pip install --upgrade pip
18-
pip install python-dateutil pytest mock pytest-cov coverage
18+
pip install python-dateutil pytest mock pytest-cov coverage ruff
19+
20+
- name: Check code formatting
21+
run: ruff format .
22+
23+
- name: Check for code errors
24+
run: ruff check .
25+
1926
- name: Run Test
2027
run: |
2128
py.test --cov coveralls --cov-report term-missing --cov-report=lcov --cov=resources tests/
29+
2230
- name: Coveralls GitHub Action
2331
uses: coverallsapp/[email protected]
2432
with:

ruff.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore line length for now
2+
ignore = ["E501"]

0 commit comments

Comments
 (0)