Skip to content

Commit 8d04ab5

Browse files
committed
Fix hash randomisation disablement
1 parent 7df7951 commit 8d04ab5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/test_corpus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Run tests
7676
run: |
77-
if [[ "${matrix.python}" == "python3.3" || "${matrix.python}" == "python3.4" || "${matrix.python}" == "python3.5" ]]; then
77+
if [[ "${{ matrix.python }}" == "python3.3" || "${{ matrix.python }}" == "python3.4" || "${{ matrix.python }}" == "python3.5" ]]; then
7878
# These versions randomise the hash seed, but don't preserve dict order
7979
# This affects how names are assigned. Disable the hash randomisation for
8080
# deterministic results.

src/python_minifier/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def minify(
2424
remove_asserts: bool = ...,
2525
remove_debug: bool = ...,
2626
remove_explicit_return_none: bool = ...,
27-
remove_builtin_exception_brackets: bool = ...
27+
remove_builtin_exception_brackets: bool = ...,
28+
constant_folding: bool = ...
2829
) -> Text: ...
2930

3031
def unparse(module: ast.Module) -> Text: ...

0 commit comments

Comments
 (0)