Skip to content

Commit

Permalink
Apply updates from cookiecutter
Browse files Browse the repository at this point in the history
This automated commit applies the latest updates from our cookiecutters [1] to
this repo.

[1]: https://github.com/hypothesis/cookiecutters
  • Loading branch information
github-actions[bot] authored and seanh committed Jun 13, 2024
1 parent 37fe416 commit 5e4781d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .cookiecutter/includes/tox/deps
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{dev,tests,functests,lint}: sqlalchemy>2
{dev,typecheck,tests,functests,lint}: sqlalchemy>2
typecheck: factory-boy
typecheck: pytest
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ jobs:
python-version: '3.12'
- run: python -m pip install 'tox<4'
- run: tox -e lint
Typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- run: python -m pip install 'tox<4'
- run: tox -e typecheck
Tests:
runs-on: ubuntu-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ functests-py38: python
$(call help,make sure,"make sure that the formatting$(comma) linting and tests all pass")
sure: python
sure:
@pyenv exec tox --parallel -qe 'checkformatting,lint,tests,py{311,310,39,38}-tests,coverage,functests,py{311,310,39,38}-functests'
@pyenv exec tox --parallel -qe 'checkformatting,lint,typecheck,tests,py{311,310,39,38}-tests,coverage,functests,py{311,310,39,38}-functests'

.PHONY: template
$(call help,make template,"update from the latest cookiecutter template")
Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,24 @@ good-names = [
output-format = "colorized"
score = "no"

[tool.mypy]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true

disable_error_code = [
# https://mypy.readthedocs.io/en/stable/error_code_list.html#code-import-untyped
"import-untyped",
]

[[tool.mypy.overrides]]
module= [
# Don't try to typecheck the tests for now
"tests.*",
]
ignore_errors = true


[tool.hdev]
project_name = "h-testkit"
project_type = "library"
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ deps =
lint,tests,functests: h-matchers
lint,template: cookiecutter
typecheck: mypy
{dev,tests,functests,lint}: sqlalchemy>2
{dev,typecheck,tests,functests,lint}: sqlalchemy>2
typecheck: factory-boy
typecheck: pytest
depends =
coverage: tests,py{311,310,39,38}-tests
commands =
Expand Down

0 comments on commit 5e4781d

Please sign in to comment.