Skip to content

Commit

Permalink
Adds taskipy and complete readme
Browse files Browse the repository at this point in the history
  • Loading branch information
garciadias committed Apr 26, 2023
1 parent d28625f commit 3b15215
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 3 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# My codewars katas
[![Codewars](https://www.codewars.com/users/gracia-dias/badges/large)](https://www.codewars.com/users/gracia-dias)

## Install poetry virtual environment
```bash
$ poetry install
```

### Run tests with pytest and coverage
```bash
$ poetry run task simple_test
```

### Run tests with pytest, coverage, linting, type checking, formatting, and complexity analysis
```bash
$ poetry run task test
```

44 changes: 43 additions & 1 deletion poetry.lock

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

Binary file modified py_codewars/__pycache__/string_ends_with.cpython-311.pyc
Binary file not shown.
16 changes: 14 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ python = "^3.11"
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
pytest-cov = "^4.0.0"
taskipy = "^1.10.4"
isort = "^5.12.0"
mypy = "^1.2.0"
black = "^23.3.0"
flake8 = "^6.0.0"


[tool.poetry.group.loc.dependencies]
Expand All @@ -28,5 +33,12 @@ prospect = "^0.1.0"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.flake8]
max-line-length = 120
[tool.taskipy.tasks]
conde_style = "black . && isort . 120"
flake8 = "flake8 ."
mypy = "mypy . --ignore-missing-imports"
pre_test = "task conde_style && task flake8 && task mypy && prospect ."
test = "pytest -s -x --cov=py_codewars -vv"
post_test = "coverage html"
show_coverage = "firefox htmlcov/index.html"
simple_test = "pytest -s -x --cov=py_codewars -vv"

0 comments on commit 3b15215

Please sign in to comment.