* Add a multithreaded stress test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* add noqa
* add a docstring for the new test
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Added support for wasm32-pyodide
* Removed match: not supported before python 3.10
* Added test with good case
* Changed default parallelism=1 when platform.machine() = wasm32
* More robust platform checking
* Testing under different platforms
* Added error message to UnsupportedParamsError
* Added centralized functions for parameters validations and platform-compatible defaults
* Pre-commit
* Added test for PasswordHasher.from_parameters()
* Pre commit
* Fix pre-commit
* Fix test: made PasswordHasher.from_parameters easier to test
* Update src/argon2/exceptions.py
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
* Update tests/test_password_hasher.py
* Update src/argon2/_password_hasher.py
* Update .python-version-default
* Update tests/test_password_hasher.py
* Update tests/test_password_hasher.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update src/argon2/profiles.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update src/argon2/_utils.py
* Update src/argon2/exceptions.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update tests/test_password_hasher.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update tests/test_password_hasher.py
* Update tests/test_password_hasher.py
---------
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
Co-authored-by: Hynek Schlawack <hs@ox.cx>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* using hypothesys `func` param instead fixed
* rst doc: not used link definition
* small refactor in cli
* Retain param order
---------
Co-authored-by: Hynek Schlawack <hs@ox.cx>
* Move to Hatch
* Remove empty .gitmodules
* Make packaging metadata dynamic
* Get real version when checking package
* Use real versions with system-package
* Simplify tox.ini
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.12b0 → 22.1.0](https://github.com/psf/black/compare/21.12b0...22.1.0)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
test_argument_ranges fails intermittently (with high probability) with the
following error:
Falsifying example: test_argument_ranges(password='', time_cost=1, parallelism=4, memory_cost=740, hash_len=196, salt_len=223)
Unreliable test timings! On an initial run, this test took 332.92ms, which
exceeded the deadline of 200.00ms, but on a subsequent run it took 24.19
ms, which did not. If you expect this sort of variability in your test
timings, consider turning deadlines off for this test by setting
deadline=None.
Given the test is slow "This test is rather slow." and test can be run in
a multitude of environments including virtualized environments, and test
timing doesn't appear to be relevant or valuable, disable deadlines for
this test accordingly.