Skip to content

Commit 94ce6cf

Browse files
committed
Merge branch 'jdavcs-dev_ci' into dev
2 parents e7836a9 + 3798a41 commit 94ce6cf

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/lint.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Python linting
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: Test
6+
runs-on: ubuntu-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
python-version: ['3.8', '3.12']
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: ${{ matrix.python-version }}
16+
- name: Install ruff
17+
run: pip install ruff
18+
- name: Run linting
19+
run: ruff check panagram
20+
- name: Install mypy
21+
run: pip install mypy
22+
- name: Run type checking
23+
run: mypy panagram
24+

mypy.ini

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[mypy]
2+
show_error_codes = True
3+
ignore_missing_imports = True
4+
pretty = True
5+
no_implicit_optional = True
6+
strict_equality = True
7+
warn_unreachable = True
8+
warn_unused_ignores = True
9+
check_untyped_defs = True

0 commit comments

Comments
 (0)