Commit Graph

11 Commits

Author SHA1 Message Date
Joshua Bronson 6a42b35683 update dev deps, use uv's new universal lockfile support, add python38 back to nix dev shell and tox matrix 2024-06-27 13:32:49 -04:00
Joshua Bronson 9266b41ee3 Update flake.lock
...and remove `python38` from devShells, since it's no longer available
in nixos-unstable. (I.e. undo 61bcdbe20 -- not worth staying stuck on an
old version of unstable for the next 6 months since we can still test on
3.8 in CI.)
2024-04-01 15:46:29 -04:00
Joshua Bronson 477181c9f0 Update comment. 2024-03-15 12:05:21 -04:00
Joshua Bronson b0a7e4706f init and activate dev env from nix shellHook + minor refactor to init and update scripts
Also update dev deps and ditch use of --generate-hashes (too noisy).

Finally, drop dev dependency on pip-tools. We're using uv instead as of
43ea51f321.
2024-02-20 20:21:08 -05:00
Joshua Bronson 04d24fe4aa nix flake update -> uv 0.1.4 -> uv pip sync 2024-02-19 09:11:54 -05:00
Joshua Bronson 0761d217ce Drop use of `typing.TypeAlias` in type hints (fix #310).
`typing.TypeAlias` was added in Python 3.10. In Python <= 3.9, using
`typing.TypeAlias` as a type hint confuses mypy.

To avoid this, either `typing_extensions.TypeAlias` must be used, or the
`TypeAlias` type hint may be dropped entirely in favor of relying on
type inference. Based on the current, limited usage of `TypeAlias`,
the latter is preferable.

Run mypy as part of automated tests for every supported Python version
to catch such issues in the future.
2024-02-18 12:18:28 -05:00
Joshua Bronson 43ea51f321 Switch to uv for development + update dev deps 2024-02-17 17:38:28 -05:00
Joshua Bronson 51c3d6ddf2 Add 'update dev deps' workflow, etc. 2024-01-13 16:30:52 -05:00
Joshua Bronson 678c007d39
bugfix + rewrite tests + misc. improvements (#295)
- Fix `bidict(None)` bug (should raise TypeError).

- Simplify hypothesis tests, especially by using stateful testing.

- Add overriding type hints for `inv` for each bidict type
  (not just for `inverse`).

- Improve docs and fix readthedocs build as of move to python3.12 for
  building docs.
2024-01-08 20:56:05 -05:00
Joshua Bronson 9957b517dd Fix coverage with pytest-xdist, switch default py version to 3.12 (for coverage and development)
Coverage was not being correctly combined when running pytest-xdist with
more than one subprocess.

Also add new "coverage" tox env for locally running tests with coverage
more conveniently, and upgrade dev dependencies.
2023-12-30 17:09:23 -05:00
Joshua Bronson a6298aa062 Docs improvements. 2023-10-14 13:08:20 -04:00