Skip to content

Commit ae3a738

Browse files
committed
✨ Basic starter CI with mypy and ruff
1 parent 5318ce7 commit ae3a738

4 files changed

Lines changed: 64 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
lint-and-typecheck:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.14"
21+
22+
- name: Install tools
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install ruff mypy
26+
27+
- name: Run ruff
28+
run: ruff check .
29+
30+
- name: Run mypy
31+
run: mypy .

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# BloopyCode: Advent of Code
2+
3+
Yet again another attempt to keep my [AOC](https://adventofcode.com/2015) attempts consistent and keep up the motivation. Initially in Python.
4+
5+
Pre-Challenge Goals:
6+
* Try with built-in packages and libraries only.
7+
* Get to the end!
8+
* Try in another language as well as Python.
9+
10+
## Progress
11+
12+
### 2015
13+
|Day|Completed|Stars|Comments|Language|
14+
|---|---------|-----|--------|--------|
15+
|Day 1: Not Quite Lisp|☑️|⭐⭐||Python|
16+
|Day 2: I Was Told There Would Be No Math|☑️|⭐⭐||Python|
17+
|Day 3: Perfectly Spherical Houses in a Vacuum|☑️|⭐⭐||Python|

mypy.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[mypy]
2+
python_version = 3.12
3+
ignore_missing_imports = True
4+
pretty = True
5+
6+
# leave permissive for now whilst tweaking..
7+
disallow_untyped_defs = False
8+
warn_unused_ignores = True

ruff.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
line-length = 88
2+
target-version = "py314"
3+
4+
[lint]
5+
6+
# same as default for now - will add to this as go along
7+
select = ["E", "F", "W"]
8+
ignore = []

0 commit comments

Comments
 (0)