Skip to content

Commit

Permalink
Add start of Github workflow for checking codebase
Browse files Browse the repository at this point in the history
Just does Python code at the moment
  • Loading branch information
smason authored and OctopusET committed Dec 10, 2023
1 parent 0a5e7fe commit 05622e4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI

on: push

jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -U -r requirements.txt -r requirements-dev.txt
- name: Lint Python
run: ruff check --output-format=github **.py
- name: Check Python type annotations
run: mypy **.py
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tool.ruff]
select = ["E", "F", "B", "Q", "I"]
target-version = "py310"
line-length = 120

[[tool.mypy.overrides]]
module = "i3ipc"
ignore_missing_imports = true
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ruff
mypy
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
i3ipc

0 comments on commit 05622e4

Please sign in to comment.