Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: minor pre commit typo; mypy tweaks for algosdk #87

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
require_serial: false
additional_dependencies: [ ]
minimum_pre_commit_version: '0'
files: '^(src|tests)/'
files: '^(smart_contracts|tests)/'


- id: mypy
Expand All @@ -34,7 +34,7 @@ repos:
require_serial: true
additional_dependencies: [ ]
minimum_pre_commit_version: '2.9.2'
files: '^(src|tests)/'
files: '^(smart_contracts|tests)/'

# # Uncomment to enable TEAL static analysis using Tealer package
# - id: tealer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ disallow_any_unimported = true
disallow_any_expr = true
disallow_any_decorated = true
disallow_any_explicit = true
untyped_calls_exclude = ["algosdk"]
# Remove if you prefer to use mypy's default behavior against
# untyped algosdk types
[[tool.mypy.overrides]]
module = "tests.*"
disallow_any_expr = false
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
require_serial: false
additional_dependencies: [ ]
minimum_pre_commit_version: '0'
files: '^(src|tests)/'
files: '^(smart_contracts|tests)/'


- id: mypy
Expand All @@ -34,7 +34,7 @@ repos:
require_serial: true
additional_dependencies: [ ]
minimum_pre_commit_version: '2.9.2'
files: '^(src|tests)/'
files: '^(smart_contracts|tests)/'

# # Uncomment to enable TEAL static analysis using Tealer package
# - id: tealer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ disallow_any_unimported = true
disallow_any_expr = true
disallow_any_decorated = true
disallow_any_explicit = true
untyped_calls_exclude = ["algosdk"]
# Remove if you prefer to use mypy's default behavior against
# untyped algosdk types
[[tool.mypy.overrides]]
module = "tests.*"
disallow_any_expr = false
4 changes: 2 additions & 2 deletions examples/production_python/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
require_serial: false
additional_dependencies: [ ]
minimum_pre_commit_version: '0'
files: '^(src|tests)/'
files: '^(smart_contracts|tests)/'


- id: mypy
Expand All @@ -34,7 +34,7 @@ repos:
require_serial: true
additional_dependencies: [ ]
minimum_pre_commit_version: '2.9.2'
files: '^(src|tests)/'
files: '^(smart_contracts|tests)/'

# # Uncomment to enable TEAL static analysis using Tealer package
# - id: tealer
Expand Down
6 changes: 6 additions & 0 deletions examples/production_python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ disallow_any_unimported = true
disallow_any_expr = true
disallow_any_decorated = true
disallow_any_explicit = true
untyped_calls_exclude = ["algosdk"]
# Remove if you prefer to use mypy's default behavior against
# untyped algosdk types
[[tool.mypy.overrides]]
module = "tests.*"
disallow_any_expr = false
6 changes: 6 additions & 0 deletions template_content/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,10 @@ disallow_any_unimported = true
disallow_any_expr = true
disallow_any_decorated = true
disallow_any_explicit = true
untyped_calls_exclude = ["algosdk"]
# Remove if you prefer to use mypy's default behavior against
# untyped algosdk types
[[tool.mypy.overrides]]
module = "tests.*"
disallow_any_expr = false
{% endif -%}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
require_serial: false
additional_dependencies: [ ]
minimum_pre_commit_version: '0'
files: '^(src|tests)/'
files: '^(smart_contracts|tests)/'
{% endif %}
{% if use_python_mypy %}
- id: mypy
Expand All @@ -34,7 +34,7 @@ repos:
require_serial: true
additional_dependencies: [ ]
minimum_pre_commit_version: '2.9.2'
files: '^(src|tests)/'
files: '^(smart_contracts|tests)/'
{% endif %}
# # Uncomment to enable TEAL static analysis using Tealer package
# - id: tealer
Expand Down
Loading