Skip to content

Commit

Permalink
fix: minor pre commit typo; mypy tweaks for algosdk (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev authored Dec 11, 2024
1 parent a1788fb commit b2a122b
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 8 deletions.
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

0 comments on commit b2a122b

Please sign in to comment.