Skip to content

Commit

Permalink
chore: Update dependencies and add ruff for linting and checking types
Browse files Browse the repository at this point in the history
  • Loading branch information
arturboyun committed May 27, 2024
1 parent 47d2481 commit 1975774
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ jobs:
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
ls -la
- name: Test with pytest
run: |
./.venv/bin/python -m pytest ./tests --cov=src --cov-report=xml --cov-report=html
- name: Lint with pylint
run: |
./.venv/bin/python -m pylint src
- name: Check with mypy
run: |
./.venv/bin/python -m mypy src
- name: Check with ruff
run: |
./.venv/bin/python -m ruff check
96 changes: 95 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ python = "^3.12"
pytest = "^8.2.1"
pytest-cov = "^5.0.0"
pylint = {extras = ["spelling"], version = "^3.2.2"}
ruff = "^0.4.5"
mypy = "^1.10.0"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 1975774

Please sign in to comment.