testing-conventions 0.0.7__tar.gz → 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/PKG-INFO +1 -1
  2. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/CHANGELOG.md +7 -0
  3. testing_conventions-0.0.8/rust/Cargo.lock +843 -0
  4. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/Cargo.toml +2 -1
  5. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/MIGRATIONS.md +16 -0
  6. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/src/lib.rs +50 -0
  7. testing_conventions-0.0.8/rust/src/lint.rs +187 -0
  8. testing_conventions-0.0.8/rust/tests/fixtures/integration_lint/python/clean/uses_patch_fixture_test.py +17 -0
  9. testing_conventions-0.0.8/rust/tests/fixtures/integration_lint/python/red/uses_monkeypatch_test.py +9 -0
  10. testing_conventions-0.0.8/rust/tests/integration_lint.rs +84 -0
  11. testing_conventions-0.0.8/rust/tests/integration_lint_e2e.rs +34 -0
  12. testing_conventions-0.0.7/rust/Cargo.lock +0 -338
  13. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/README.md +0 -0
  14. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/pyproject.toml +0 -0
  15. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/src/config.rs +0 -0
  16. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/src/coverage.rs +0 -0
  17. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/src/location.rs +0 -0
  18. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/src/main.rs +0 -0
  19. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/config_loader.rs +0 -0
  20. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/coverage.rs +0 -0
  21. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/coverage_e2e.rs +0 -0
  22. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/malformed.toml +0 -0
  23. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_coverage/floor100.toml +0 -0
  24. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_coverage/floor85.toml +0 -0
  25. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_coverage/python/above_85/router.py +0 -0
  26. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_coverage/python/above_85/router_test.py +0 -0
  27. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_coverage/python/below_85/grade.py +0 -0
  28. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_coverage/python/below_85/grade_test.py +0 -0
  29. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_coverage/python/full/widget.py +0 -0
  30. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_coverage/python/full/widget_test.py +0 -0
  31. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/clean/pkg/helper.py +0 -0
  32. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/clean/pkg/helper_test.py +0 -0
  33. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/clean/widget.py +0 -0
  34. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/clean/widget_test.py +0 -0
  35. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/exempt/__init__.py +0 -0
  36. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/exempt/pkg/__init__.py +0 -0
  37. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/exempt/widget.py +0 -0
  38. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/exempt/widget_test.py +0 -0
  39. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/red/lonely.py +0 -0
  40. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/red/pkg/orphan.py +0 -0
  41. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/red/pkg/paired.py +0 -0
  42. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/red/pkg/paired_test.py +0 -0
  43. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/red/widget.py +0 -0
  44. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/red/widget_test.py +0 -0
  45. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/ambient.d.mts +0 -0
  46. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/button.test.tsx +0 -0
  47. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/button.tsx +0 -0
  48. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/legacy.cts +0 -0
  49. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/legacy.test.cts +0 -0
  50. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/pkg/helper.test.ts +0 -0
  51. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/pkg/helper.ts +0 -0
  52. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/service.mts +0 -0
  53. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/service.test.mts +0 -0
  54. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/types.d.ts +0 -0
  55. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/widget.test.ts +0 -0
  56. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/clean/widget.ts +0 -0
  57. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/red/bridge.cts +0 -0
  58. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/red/lonely.ts +0 -0
  59. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/red/pkg/orphan.ts +0 -0
  60. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/red/shapes.d.cts +0 -0
  61. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/red/shapes.d.ts +0 -0
  62. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/red/solo.mts +0 -0
  63. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/red/widget.test.ts +0 -0
  64. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unit_location/typescript/red/widget.ts +0 -0
  65. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/unknown_key.toml +0 -0
  66. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/fixtures/valid.toml +0 -0
  67. {testing_conventions-0.0.7 → testing_conventions-0.0.8}/rust/tests/unit_location.rs +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testing-conventions
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Enforce testing conventions in libraries (Python, TypeScript, and Rust).
5
5
  Author-email: Kevin Scott <me@thekevinscott.com>
6
6
  License: MIT
@@ -27,6 +27,13 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
27
27
  and exits non-zero if below. Library API: `coverage::{measure, evaluate,
28
28
  parse_report, Thresholds, CoverageReport, Outcome}`. First rule to consume
29
29
  `load_config`. (#26)
30
+ - `lint` module + `integration lint` CLI — the first deterministic *lint* on test
31
+ code. `integration lint --language python <PATH>` parses each Python test file
32
+ (`*_test.py`, `test_*.py`, `conftest.py`) with `rustpython_parser` and walks the
33
+ AST, exiting non-zero on any violation. First lint:
34
+ **`no-monkeypatch`** (#49) — a test/fixture that declares the `monkeypatch`
35
+ parameter (patch with `unittest.mock` wrapped in a `pytest.fixture` instead).
36
+ Library API: `testing_conventions::lint::{find_violations, Violation}`. (#48, #49)
30
37
 
31
38
  ### Changed
32
39