Skip to content

Commit

Permalink
Merge pull request #35 from jerry-git/chore/auto-update-project-from-…
Browse files Browse the repository at this point in the history
…template

[Actions] Auto-Update cookiecutter template
  • Loading branch information
jerry-git committed Nov 9, 2021
2 parents 7c5e749 + 3c0c42c commit 9283f44
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/woltapp/wolt-python-package-cookiecutter",
"commit": "b773d08f38d1980e215aeb8dcdcfa7a8af7e1620",
"commit": "c0c57d98780fb86ad160b80f7a05dd7f63bc2031",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ repos:
entry: poetry run flake8
language: system
types: [python]
- id: kacl-verify
name: kacl-verify
entry: poetry run kacl-cli verify
language: system
files: 'CHANGELOG.md'
pass_filenames: false
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

**Documentation**: [https://jerry-git.github.io/pytest-split](https://jerry-git.github.io/pytest-split)

**Source Code**: [https://github.com/jerry-git/pytest-split](https
://github.com/jerry-git/pytest-split)
**Source Code**: [https://github.com/jerry-git/pytest-split](https://github.com/jerry-git/pytest-split)

**PyPI**: [https://pypi.org/project/pytest-split/](https://pypi.org/project/pytest-split/)

Expand Down Expand Up @@ -119,7 +118,7 @@ Trigger the [Draft release workflow](https://github.com/jerry-git/pytest-split/a

Find the draft release from the
[GitHub releases](https://github.com/jerry-git/pytest-split/releases) and publish it. When
a release is published, it'll trigger [release](.github/workflows/release.yml) workflow which creates PyPI
a release is published, it'll trigger [release](https://github.com/jerry-git/pytest-split/blob/master/.github/workflows/release.yml) workflow which creates PyPI
release and deploys updated documentation.

### Pre-commit
Expand Down
15 changes: 15 additions & 0 deletions poetry.lock

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

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ no_implicit_optional = true
strict_equality = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = true
check_untyped_defs = true
show_error_codes = true

[[tool.mypy.overrides]]
module = ['tests.*']
disallow_untyped_defs = false
strict_equality = false
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ def test_slowest_tests(durations_file):
)
cli.list_slowest_tests()

output = sys.stdout.getvalue()
output = sys.stdout.getvalue() # type: ignore
assert output == "10.00 test_10\n" "9.00 test_9\n" "8.00 test_8\n"
2 changes: 1 addition & 1 deletion tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def test_it_splits(
}
if legacy_flag:
# formats durations to legacy format
durations = [list(tup) for tup in durations.items()]
durations = [list(tup) for tup in durations.items()] # type: ignore

with open(durations_path, "w") as f:
json.dump(durations, f)
Expand Down

0 comments on commit 9283f44

Please sign in to comment.