Skip to content

Commit

Permalink
remove super-linter, common type-lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyabareeva committed Apr 2, 2024
1 parent c512046 commit a983552
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 36 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/lint.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/type-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .github/workflows/tests.yml
name: Tests
on: push
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup python 3.10
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: "3.11"

- name: Install tox
run: pip install tox

- name: Run flake8
run: tox run -e lint

- name: Run mypy
run: tox run -e type
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,3 @@ style:
black .
flake8
python3 -m isort .

# Testing
.PHONY: tests
tests:
. .venv/bin/activate && py.test tests --cov=src --cov-report=term-missing --cov-fail-under 95
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# TBD
19 changes: 18 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,21 @@ deps =
coverage
pytest_cov
commands =
python3 -m pytest --cov=src --cov-report=term-missing --cov-fail-under 1 --cov-report html:htmlcov --cov-report xml {posargs}
python3 -m pytest --cov=src --cov-report=term-missing --cov-fail-under 0 --cov-report html:htmlcov --cov-report xml {posargs}


[testenv:lint]
description = Check the code style
deps =
flake8
commands =
python3 -m flake8 .

[testenv:type]
description = Run type checking
base_python = py311
deps =
{[testenv]deps}
mypy==0.982
commands =
python3 -m mypy src

0 comments on commit a983552

Please sign in to comment.