Skip to content

Commit 2bb20e6

Browse files
committed
feat: update CI configuration to replace mypy with ty for type checking and clean up pre-commit hooks
1 parent 8641e29 commit 2bb20e6

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,30 @@ jobs:
1919
steps:
2020
- name: 📥 Checkout code
2121
uses: actions/checkout@v3
22-
22+
2323
- name: 🐍 Setup Python ${{ matrix.python-version }}
2424
uses: actions/setup-python@v3
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
architecture: x64
28-
28+
2929
- name: 📦 Install Poetry and dependencies
3030
run: |
3131
pip install poetry==1.3.1
3232
poetry install
33-
33+
3434
- name: 📊 Run tests with coverage
3535
run: poetry run pytest --cov=src/ --cov-report=xml --cov-fail-under 90 --cov-config=.coveragerc
36-
37-
- name: 🔍 Type checking with mypy
36+
37+
- name: 🔍 Type checking with ty
3838
run: poetry run ty check src/
39-
39+
4040
- name: 🎨 Code formatting with black
4141
run: poetry run black --check .
42-
42+
4343
- name: 🔧 Linting
4444
run: poetry run ruff check .
45-
45+
4646
- name: 📈 Upload coverage to Codecov
4747
uses: codecov/codecov-action@v2
4848
if: always()
@@ -55,4 +55,4 @@ jobs:
5555
flags: unittests
5656
name: codecov-umbrella-${{ matrix.python-version }}
5757
path_to_write_report: .codecov_report.${{ matrix.python-version }}.txt
58-
verbose: true
58+
verbose: true

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
4-
hooks:
5-
- id: check-yaml
6-
- id: end-of-file-fixer
7-
- id: trailing-whitespace
82
- repo: local
93
hooks:
104
- id: black

0 commit comments

Comments
 (0)