Skip to content

Commit e640329

Browse files
authored
Add linter to CI (#9)
1 parent 3255ef1 commit e640329

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Lint
9+
uses: astral-sh/ruff-action@v2
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install -r requirements.txt
22+
- name: Test with pytest
23+
run: |
24+
pip install pytest
25+
pytest ./src/
26+

.github/workflows/test.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/conf.py

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

1515
"""Configuration file for the Sphinx documentation builder."""
1616

17-
import sphinx_rtd_theme
1817
import os
1918
import sys
2019

0 commit comments

Comments
 (0)