archunitpython 1.5.0__py3-none-any.whl → 1.6.0__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  """ArchUnitPython - Architecture testing library for Python projects."""
2
2
 
3
- __version__ = "1.5.0"
3
+ __version__ = "1.6.0"
4
4
 
5
5
  # Files API
6
6
  # Common
@@ -43,6 +43,8 @@ class _LocatedImport:
43
43
  module_name: str
44
44
  import_kind: ImportKind
45
45
  line_number: int
46
+ resolution_kind: ImportKind | None = None
47
+ fallback_module_name: str | None = None
46
48
 
47
49
 
48
50
  @dataclass(frozen=True)
@@ -182,9 +184,19 @@ def _extract_graph_uncached(
182
184
  and import_kind == ImportKind.TYPE_IMPORT
183
185
  ):
184
186
  continue
187
+ resolution_kind = located_import.resolution_kind or import_kind
185
188
  resolved, is_external = _resolve_import(
186
- module_name, file_path, project_path, import_kind
189
+ module_name, file_path, project_path, resolution_kind
187
190
  )
191
+ if is_external and located_import.fallback_module_name is not None:
192
+ fallback, fallback_is_external = _resolve_import(
193
+ located_import.fallback_module_name,
194
+ file_path,
195
+ project_path,
196
+ resolution_kind,
197
+ )
198
+ if fallback and not fallback_is_external:
199
+ resolved, is_external = fallback, False
188
200
  if resolved and resolved != _normalize(file_path):
189
201
  # Check if the resolved path is in our project
190
202
  if not is_external and resolved not in normalized_py_file_set:
@@ -195,7 +207,7 @@ def _extract_graph_uncached(
195
207
  source=_normalize(file_path),
196
208
  target=resolved,
197
209
  external=is_external,
198
- import_kinds=(import_kind,),
210
+ import_kinds=_edge_import_kinds(located_import),
199
211
  )
200
212
  )
201
213
 
@@ -299,32 +311,60 @@ def _extract_located_imports(file_path: str) -> list[_LocatedImport]:
299
311
  imports: list[_LocatedImport] = []
300
312
  ignore_directives = _find_ignore_directives(source)
301
313
  type_checking_ranges = _find_type_checking_ranges(tree)
314
+ conditional_import_ranges = _find_conditional_import_ranges(tree)
302
315
 
303
316
  for node in ast.walk(tree):
304
317
  if isinstance(node, ast.Import):
305
- is_type = _in_type_checking(node, type_checking_ranges)
306
- kind = ImportKind.TYPE_IMPORT if is_type else ImportKind.IMPORT
318
+ syntax_kind = ImportKind.IMPORT
319
+ kind = _classify_import(
320
+ node,
321
+ syntax_kind,
322
+ type_checking_ranges,
323
+ conditional_import_ranges,
324
+ )
307
325
  for alias in node.names:
308
- imports.append(_LocatedImport(alias.name, kind, node.lineno))
326
+ imports.append(
327
+ _LocatedImport(alias.name, kind, node.lineno, syntax_kind)
328
+ )
309
329
 
310
330
  elif isinstance(node, ast.ImportFrom):
311
- is_type = _in_type_checking(node, type_checking_ranges)
312
- if node.level and node.level > 0:
313
- # Relative import
314
- kind = ImportKind.TYPE_IMPORT if is_type else ImportKind.RELATIVE_IMPORT
315
- module = node.module or ""
316
- dots = "." * node.level
317
- imports.append(_LocatedImport(f"{dots}{module}", kind, node.lineno))
318
- else:
319
- kind = ImportKind.TYPE_IMPORT if is_type else ImportKind.FROM_IMPORT
320
- if node.module:
321
- imports.append(_LocatedImport(node.module, kind, node.lineno))
331
+ syntax_kind = (
332
+ ImportKind.RELATIVE_IMPORT
333
+ if node.level and node.level > 0
334
+ else ImportKind.FROM_IMPORT
335
+ )
336
+ kind = _classify_import(
337
+ node,
338
+ syntax_kind,
339
+ type_checking_ranges,
340
+ conditional_import_ranges,
341
+ )
342
+ fallback_module_name = (
343
+ "." * node.level if node.level and node.module is None else None
344
+ )
345
+ for module_name in _import_from_module_names(node):
346
+ imports.append(
347
+ _LocatedImport(
348
+ module_name,
349
+ kind,
350
+ node.lineno,
351
+ syntax_kind,
352
+ fallback_module_name,
353
+ )
354
+ )
322
355
 
323
356
  elif isinstance(node, ast.Call):
324
- is_type = _in_type_checking(node, type_checking_ranges)
325
- kind = ImportKind.TYPE_IMPORT if is_type else ImportKind.DYNAMIC_IMPORT
357
+ syntax_kind = ImportKind.DYNAMIC_IMPORT
358
+ kind = _classify_import(
359
+ node,
360
+ syntax_kind,
361
+ type_checking_ranges,
362
+ conditional_import_ranges,
363
+ )
326
364
  for module_name in _extract_dynamic_import_names(node):
327
- imports.append(_LocatedImport(module_name, kind, node.lineno))
365
+ imports.append(
366
+ _LocatedImport(module_name, kind, node.lineno, syntax_kind)
367
+ )
328
368
 
329
369
  return [
330
370
  import_
@@ -389,6 +429,43 @@ def _extract_dynamic_import_names(node: ast.Call) -> list[str]:
389
429
  return []
390
430
 
391
431
 
432
+ def _import_from_module_names(node: ast.ImportFrom) -> tuple[str, ...]:
433
+ """Return resolvable module names for a from-import statement."""
434
+ dots = "." * (node.level or 0)
435
+ if node.module:
436
+ return (f"{dots}{node.module}",)
437
+
438
+ aliases = tuple(alias.name for alias in node.names if alias.name != "*")
439
+ if dots and aliases:
440
+ return tuple(f"{dots}{alias}" for alias in aliases)
441
+ return (dots,) if dots else ()
442
+
443
+
444
+ def _edge_import_kinds(import_: _LocatedImport) -> tuple[ImportKind, ...]:
445
+ """Return graph labels without losing syntax for conditional imports."""
446
+ resolution_kind = import_.resolution_kind or import_.import_kind
447
+ if (
448
+ import_.import_kind == ImportKind.CONDITIONAL_IMPORT
449
+ and resolution_kind != import_.import_kind
450
+ ):
451
+ return (resolution_kind, import_.import_kind)
452
+ return (import_.import_kind,)
453
+
454
+
455
+ def _classify_import(
456
+ node: ast.AST,
457
+ default_kind: ImportKind,
458
+ type_checking_ranges: list[tuple[int, int]],
459
+ conditional_import_ranges: list[tuple[int, int]],
460
+ ) -> ImportKind:
461
+ """Classify an import node by special context before syntax kind."""
462
+ if _in_type_checking(node, type_checking_ranges):
463
+ return ImportKind.TYPE_IMPORT
464
+ if _in_conditional_import(node, conditional_import_ranges):
465
+ return ImportKind.CONDITIONAL_IMPORT
466
+ return default_kind
467
+
468
+
392
469
  def _find_type_checking_ranges(tree: ast.Module) -> list[tuple[int, int]]:
393
470
  """Find line ranges of TYPE_CHECKING blocks."""
394
471
  ranges: list[tuple[int, int]] = []
@@ -414,6 +491,46 @@ def _find_type_checking_ranges(tree: ast.Module) -> list[tuple[int, int]]:
414
491
  return sorted(ranges, key=lambda ele: ele[0])
415
492
 
416
493
 
494
+ def _find_conditional_import_ranges(tree: ast.Module) -> list[tuple[int, int]]:
495
+ """Find try/except ImportError ranges that contain optional imports."""
496
+ ranges: list[tuple[int, int]] = []
497
+
498
+ for node in ast.walk(tree):
499
+ if not isinstance(node, ast.Try):
500
+ continue
501
+ if not any(_handles_import_error(handler.type) for handler in node.handlers):
502
+ continue
503
+
504
+ ranges.extend(_statement_ranges(node.body))
505
+ for handler in node.handlers:
506
+ if _handles_import_error(handler.type):
507
+ ranges.extend(_statement_ranges(handler.body))
508
+
509
+ return sorted(ranges, key=lambda ele: ele[0])
510
+
511
+
512
+ def _handles_import_error(node: ast.expr | None) -> bool:
513
+ """Return True if an except handler catches import-related errors."""
514
+ if node is None:
515
+ return False
516
+ if isinstance(node, ast.Name):
517
+ return node.id in {"ImportError", "ModuleNotFoundError"}
518
+ if isinstance(node, ast.Attribute):
519
+ return node.attr in {"ImportError", "ModuleNotFoundError"}
520
+ if isinstance(node, ast.Tuple):
521
+ return any(_handles_import_error(elt) for elt in node.elts)
522
+ return False
523
+
524
+
525
+ def _statement_ranges(statements: list[ast.stmt]) -> list[tuple[int, int]]:
526
+ """Return line ranges covered by statement blocks."""
527
+ if not statements:
528
+ return []
529
+ start = statements[0].lineno
530
+ end = max(getattr(statement, "end_lineno", statement.lineno) for statement in statements)
531
+ return [(start, end)]
532
+
533
+
417
534
  def _in_type_checking(node: ast.AST, ranges: list[tuple[int, int]]) -> bool:
418
535
  """Check if a node is inside a TYPE_CHECKING block."""
419
536
  if not hasattr(node, "lineno"):
@@ -422,6 +539,14 @@ def _in_type_checking(node: ast.AST, ranges: list[tuple[int, int]]) -> bool:
422
539
  return any(start <= lineno <= end for start, end in ranges)
423
540
 
424
541
 
542
+ def _in_conditional_import(node: ast.AST, ranges: list[tuple[int, int]]) -> bool:
543
+ """Check if a node is inside a try/except ImportError block."""
544
+ if not hasattr(node, "lineno"):
545
+ return False
546
+ lineno = node.lineno
547
+ return any(start <= lineno <= end for start, end in ranges)
548
+
549
+
425
550
  def _resolve_import(
426
551
  import_name: str,
427
552
  source_file: str,
@@ -433,7 +558,14 @@ def _resolve_import(
433
558
  Returns (resolved_path, is_external).
434
559
  The path is normalized with forward slashes.
435
560
  """
436
- if kind in (ImportKind.RELATIVE_IMPORT, ImportKind.TYPE_IMPORT) and import_name.startswith("."):
561
+ if (
562
+ kind
563
+ in (
564
+ ImportKind.RELATIVE_IMPORT,
565
+ ImportKind.TYPE_IMPORT,
566
+ )
567
+ and import_name.startswith(".")
568
+ ):
437
569
  # Relative import
438
570
  return _resolve_relative_import(import_name, source_file, project_root)
439
571
 
@@ -14,6 +14,7 @@ class ImportKind(Enum):
14
14
  RELATIVE_IMPORT = "relative" # from . import bar / from ..foo import bar
15
15
  DYNAMIC_IMPORT = "dynamic" # __import__('foo') / importlib.import_module()
16
16
  TYPE_IMPORT = "type" # inside TYPE_CHECKING block
17
+ CONDITIONAL_IMPORT = "conditional" # inside try/except ImportError
17
18
 
18
19
 
19
20
  @dataclass(frozen=True)
@@ -72,8 +72,8 @@ def gather_custom_file_violations(
72
72
  nodes: All projected nodes.
73
73
  condition: Custom function that returns True if the file passes.
74
74
  message: Message to include in violation.
75
- is_negated: If False (should adhere), violation when condition returns False.
76
- If True (shouldNot adhere), violation when condition returns True.
75
+ is_negated: If False (positive assertion), violation when condition returns False.
76
+ If True (negated assertion), violation when condition returns True.
77
77
  pre_filters: Filters to apply before checking the condition.
78
78
 
79
79
  Returns:
@@ -90,7 +90,7 @@ def gather_custom_file_violations(
90
90
  result = condition(file_info)
91
91
 
92
92
  if is_negated:
93
- # shouldNot: violation if condition IS True
93
+ # Negated assertion: violation if condition IS True
94
94
  if result:
95
95
  violations.append(CustomFileViolation(message=message, file_info=file_info))
96
96
  else:
@@ -30,9 +30,9 @@ def gather_depend_on_file_violations(
30
30
  edges: Projected dependency edges.
31
31
  subject_filters: Patterns for the source files (subject of the rule).
32
32
  object_filters: Patterns for the target files (dependency targets).
33
- is_negated: If False (should), files matching subject MUST depend on
33
+ is_negated: If False (`should()`), files matching subject MUST depend on
34
34
  files matching object.
35
- If True (shouldNot), files matching subject must NOT
35
+ If True (`should_not()`), files matching subject must NOT
36
36
  depend on files matching object.
37
37
 
38
38
  Returns:
@@ -48,7 +48,7 @@ def gather_depend_on_file_violations(
48
48
  target_matches = all(matches_pattern(edge.target_label, f) for f in object_filters)
49
49
 
50
50
  if is_negated:
51
- # shouldNot: violation if dependency EXISTS
51
+ # should_not(): violation if dependency EXISTS
52
52
  if target_matches:
53
53
  violations.append(ViolatingFileDependency(dependency=edge, is_negated=True))
54
54
  else:
@@ -29,8 +29,8 @@ def gather_regex_matching_violations(
29
29
  Args:
30
30
  nodes: Files to check.
31
31
  check_filters: Patterns to match against.
32
- is_negated: If False (should), files MUST match all patterns.
33
- If True (shouldNot), files must NOT match any pattern.
32
+ is_negated: If False (`should()`), files MUST match all patterns.
33
+ If True (`should_not()`), files must NOT match any pattern.
34
34
 
35
35
  Returns:
36
36
  List of violations.
@@ -41,7 +41,7 @@ def gather_regex_matching_violations(
41
41
  for filter_ in check_filters:
42
42
  matched = matches_pattern(node.label, filter_)
43
43
  if is_negated:
44
- # shouldNot: violation if file DOES match
44
+ # should_not(): violation if file DOES match
45
45
  if matched:
46
46
  violations.append(
47
47
  ViolatingNode(
@@ -30,7 +30,7 @@ def gather_violations(
30
30
  edges: list[ProjectedEdge],
31
31
  rules: list[Rule],
32
32
  ) -> list[Violation]:
33
- """Check for forbidden dependencies (used with shouldNot).
33
+ """Check for forbidden dependencies (used with `should_not()`).
34
34
 
35
35
  Args:
36
36
  edges: Projected dependency edges between slices.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: archunitpython
3
- Version: 1.5.0
3
+ Version: 1.6.0
4
4
  Summary: Architecture testing library for Python projects. Enforce dependency rules, detect cycles, validate metrics.
5
5
  Project-URL: Homepage, https://github.com/LukasNiessen/ArchUnitPython
6
6
  Project-URL: Repository, https://github.com/LukasNiessen/ArchUnitPython.git
@@ -41,7 +41,6 @@ Description-Content-Type: text/markdown
41
41
 
42
42
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Build & tests](https://img.shields.io/github/actions/workflow/status/LukasNiessen/ArchUnitPython/integrate.yaml?branch=main&label=build%20%26%20tests)](https://github.com/LukasNiessen/ArchUnitPython/actions/workflows/integrate.yaml) [![GitHub stars](https://img.shields.io/github/stars/LukasNiessen/ArchUnitPython.svg)](https://github.com/LukasNiessen/ArchUnitPython)<br>
43
43
  [![PyPI downloads](https://static.pepy.tech/badge/archunitpython/month)](https://pepy.tech/project/archunitpython) [![PyPI total downloads](https://img.shields.io/pepy/dt/archunitpython?label=total%20downloads&color=007ec6)](https://pepy.tech/project/archunitpython)
44
- <!-- [![PyPI version](https://img.shields.io/pypi/v/archunitpython.svg)](https://pypi.org/project/archunitpython/) -->
45
44
 
46
45
  </div>
47
46
 
@@ -51,7 +50,7 @@ The #1 ArchUnit-style architecture testing library for Python, measured by GitHu
51
50
 
52
51
  _Inspired by the amazing ArchUnit library but we are not affiliated with ArchUnit._
53
52
 
54
- [Setup](#-setup) • [Use Cases](#-use-cases) • [Features](#-features) • [Why ArchUnitPython?](#-library-comparison) • [Sponsor](https://github.com/sponsors/LukasNiessen) • [Contributing](CONTRIBUTING.md)
53
+ [Setup](#-setup) • [Use Cases](#-use-cases) • [Features](#-features) • [Why ArchUnitPython?](#-library-comparison) • [Sponsor](https://github.com/sponsors/LukasNiessen) • [Contributing](CONTRIBUTING.md) • [Documentation](https://lukasniessen.github.io/ArchUnitPython/)
55
54
 
56
55
  ## ⚡ 5 min Quickstart
57
56
 
@@ -378,6 +377,17 @@ ArchUnitPython detects string-based dynamic imports such as `importlib.import_mo
378
377
  from my_app.adapters.sql import Repository # archunit: ignore
379
378
  ```
380
379
 
380
+ ### Conditional Imports
381
+
382
+ Imports inside `try` blocks that handle `ImportError` or
383
+ `ModuleNotFoundError` are marked as conditional dependencies. This helps graph
384
+ reports distinguish optional imports and fallback implementations from regular
385
+ runtime imports. Conditional dependencies remain part of architecture checks;
386
+ relative and dynamic imports also retain their original import kind in graph
387
+ reports. An edge may therefore have multiple kinds: CSV reports use
388
+ pipe-delimited values such as `relative|conditional`, while HTML reports list
389
+ both values separately.
390
+
381
391
  ### Naming Conventions
382
392
 
383
393
  ```python
@@ -393,6 +403,10 @@ def test_naming_patterns():
393
403
 
394
404
  ### Code Metrics
395
405
 
406
+ Metric rules evaluate every matching file or class independently. Use filters such as
407
+ `in_folder()`, `with_name()`, and `for_classes_matching()` when different parts of the
408
+ project need different limits.
409
+
396
410
  ```python
397
411
  def test_no_large_files():
398
412
  rule = metrics("src/").count().lines_of_code().should_be_below(1000)
@@ -403,7 +417,7 @@ def test_high_class_cohesion():
403
417
  assert_passes(rule)
404
418
 
405
419
  def test_method_count():
406
- rule = metrics("src/").count().method_count().should_be_below(20)
420
+ rule = metrics("src/").count().method_count().should_be_below_or_equal(20)
407
421
  assert_passes(rule)
408
422
 
409
423
  def test_field_count_for_data_classes():
@@ -417,6 +431,45 @@ def test_field_count_for_data_classes():
417
431
  assert_passes(rule)
418
432
  ```
419
433
 
434
+ #### Comparison Semantics
435
+
436
+ Metric comparisons are exact. In particular, `should_be_below(20)` means `< 20`, so
437
+ a value of exactly `20` is a violation. Use the inclusive form when the limit itself
438
+ should be accepted.
439
+
440
+ | Method | Passing values |
441
+ | --- | --- |
442
+ | `should_be_below(n)` | `< n` |
443
+ | `should_be_below_or_equal(n)` | `<= n` |
444
+ | `should_be_above(n)` | `> n` |
445
+ | `should_be_above_or_equal(n)` | `>= n` |
446
+ | `should_be(n)` | exactly `n` |
447
+
448
+ Not every metric builder exposes every comparison. The available methods are shown
449
+ by the fluent API after selecting a metric.
450
+
451
+ #### Choosing Thresholds
452
+
453
+ There is no universal correct limit for every codebase. Treat thresholds as
454
+ architecture decisions that should reflect the role and maturity of the code:
455
+
456
+ 1. Measure the current project before enabling a new rule.
457
+ 2. Start at the current maximum, or slightly above it, to prevent further regression.
458
+ 3. Use narrower filters when generated code, data classes, or adapters need different limits.
459
+ 4. Lower the threshold gradually as existing violations are removed.
460
+ 5. Record the reason with `.because(...)` so future maintainers understand the limit.
461
+
462
+ | Metric | Interpretation | Useful starting point |
463
+ | --- | --- | --- |
464
+ | Lines of code | File size and review burden | Current maximum for hand-written files |
465
+ | Method or field count | Class responsibility and size | Current maximum, split by class role |
466
+ | LCOM | Lack of class cohesion; lower is generally better | Baseline one LCOM variant and keep it consistent |
467
+ | Instability | Dependence on outgoing versus incoming dependencies | Compare files with similar architectural roles |
468
+ | Distance from main sequence | Balance between abstractness and instability; closer to zero is better | Observe the current distribution before tightening |
469
+
470
+ Thresholds are guardrails, not quality scores. A metric violation is a prompt to inspect
471
+ the design; it does not automatically mean the code is incorrect.
472
+
420
473
  ### Distance Metrics
421
474
 
422
475
  ```python
@@ -512,13 +565,13 @@ from archunitpython import project_graph
512
565
  def test_export_dependency_graph_reports():
513
566
  graph = project_graph("src/requests").titled("Application Architecture")
514
567
 
515
- graph.collapse_to_folder_depth(2).export_as_mermaid("reports/dependencies.md")
568
+ graph.collapse_to_folder_depth(2).export_as_mermaid("reports/dependencies.mmd")
516
569
 
517
570
  if __name__ == "__main__":
518
571
  test_export_dependency_graph_reports()
519
572
  ```
520
- **Exported mermaid diagram**
521
- ``` mermaid
573
+ **Exported Mermaid diagram**
574
+ ```mermaid
522
575
  flowchart LR
523
576
  n0["__init__.py"]
524
577
  n1["__version__.py"]
@@ -636,20 +689,36 @@ When you create reports through `project_graph("src/")`, internal file paths are
636
689
 
637
690
  ### Reports
638
691
 
639
- Generate HTML reports for your metrics. _Note that this feature is in beta._
692
+ Generate an HTML report from metric values collected by your tests or build tooling.
693
+ `MetricsExporter` formats the supplied dictionary; it does not execute metric rules or
694
+ calculate the values itself. _This feature is in beta._
640
695
 
641
696
  ```python
642
697
  from archunitpython.metrics.fluentapi.export_utils import MetricsExporter, ExportOptions
643
698
 
644
- MetricsExporter.export_as_html(
645
- {"MethodCount": 5, "FieldCount": 3, "LinesOfCode": 150},
699
+ metric_summary = {
700
+ "Maximum method count": "18 (limit: <= 20)",
701
+ "Maximum field count": "9 (limit: <= 10)",
702
+ "Maximum lines of code": "420 (limit: < 500)",
703
+ "Highest LCOM96b": "0.24 (limit: < 0.30)",
704
+ }
705
+
706
+ html = MetricsExporter.export_as_html(
707
+ metric_summary,
646
708
  ExportOptions(
647
709
  output_path="reports/metrics.html",
648
710
  title="Architecture Metrics Dashboard",
711
+ include_timestamp=False,
649
712
  ),
650
713
  )
714
+
715
+ assert "Maximum method count" in html
651
716
  ```
652
717
 
718
+ Keep labels and units stable if these reports are stored as CI artifacts and compared
719
+ between builds. Continue using executable metric rules with `assert_passes()` as the
720
+ enforcement mechanism.
721
+
653
722
  ## 🔎 Pattern Matching System
654
723
 
655
724
  We offer three targeting options for pattern matching across all modules:
@@ -984,7 +1053,7 @@ If ArchUnitPython helps your project, please consider:
984
1053
 
985
1054
  ### Star History
986
1055
 
987
- [![Star History Chart](https://api.star-history.com/svg?repos=LukasNiessen/ArchUnitPython&type=Date)](https://www.star-history.com/#LukasNiessen/ArchUnitPython&Date)
1056
+ [![Star History Chart](https://star-history.dera.page/svg?repos=LukasNiessen/ArchUnitPython&type=Date)](https://star-history.dera.page/#LukasNiessen/ArchUnitPython&Date)
988
1057
 
989
1058
  ## 📄 License
990
1059
 
@@ -1,4 +1,4 @@
1
- archunitpython/__init__.py,sha256=nXfB-DvtQN-2XR6XM87aM1E71BpqDbTBe-wJLLCgWEs,1282
1
+ archunitpython/__init__.py,sha256=CU7R2ZvgfwPhbYLR99lt6Jy6NXLqXpYtf5M91Yo8i3Y,1282
2
2
  archunitpython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  archunitpython/common/__init__.py,sha256=TKL39Z0kBpWqMH99jU4LsDSUZ5lQ_rcAJfLnmUTDTOI,656
4
4
  archunitpython/common/pattern_matching.py,sha256=HMAfo8GsooHvA4d2IxCi3btrYTdwfOQXw4bDNr117P0,2669
@@ -9,8 +9,8 @@ archunitpython/common/assertion/violation.py,sha256=TnMOykN3kPoGrSf1KcxBXYRfaxfX
9
9
  archunitpython/common/error/__init__.py,sha256=UWcdIKpGAJvo4WEGOVSaUjQQnKoPi8R496uDGXBWKsE,116
10
10
  archunitpython/common/error/errors.py,sha256=y7mcXoZPyK7uD2dMMO1qBt1y7KcIeGlRYiVeI6bjms4,249
11
11
  archunitpython/common/extraction/__init__.py,sha256=RkJOcxJoLYQxEagh3uWhjsUCprK3Nr3Bn3o7nmzk4_Q,284
12
- archunitpython/common/extraction/extract_graph.py,sha256=PcKInkTFLBxWO5RqppcGJKDii2LrTXgkxm7a0G16ZAg,17186
13
- archunitpython/common/extraction/graph.py,sha256=Rk-0eDDOLoHvScO27J2JzXjyMq3e5eKtrHnFBh5B6SU,1052
12
+ archunitpython/common/extraction/extract_graph.py,sha256=SZ3-ZYI1RlIIF3saDoduXXzEHMwmflmhN60oWISeFOM,21608
13
+ archunitpython/common/extraction/graph.py,sha256=s4QW0WYfwjqXteBNygaNBdTgSC1XKil8cBFLtxl5rJE,1124
14
14
  archunitpython/common/fluentapi/__init__.py,sha256=LeS7qS2p9-FqqBhDL8xRPex__W5Qk0UWfcpl7nVVLfI,178
15
15
  archunitpython/common/fluentapi/checkable.py,sha256=BJFYibVhHLMFlnWdISPCIL3DYI1_3JN2-1jEQOaVaGE,1547
16
16
  archunitpython/common/logging/__init__.py,sha256=u3-2_jYmiyoQ-C534SmQXvR1L9h3lbJqA9Yt1Nmv9HA,115
@@ -34,11 +34,11 @@ archunitpython/config/__init__.py,sha256=jl8qQ040ej2h7KOxzNx4Xtct89YKCDZA2kcdJ-R
34
34
  archunitpython/config/loader.py,sha256=sXsq8X3rijBT2C_t5EEn1GC-22ZVxxLYcFU4Fuinkcc,4301
35
35
  archunitpython/files/__init__.py,sha256=wgl8IOqTeQGpNISu-Q8b_j6rTn8aEgoz6t1S5j8z13g,108
36
36
  archunitpython/files/assertion/__init__.py,sha256=K2qiEFfmo6SCgxfOKNrPzYgT5ScKUaw2W2CrDa3jBTw,1068
37
- archunitpython/files/assertion/custom_file_logic.py,sha256=1v5D80QX_NnAKBwKwyhetY4rA8rrXyxN2BsHlvnLgq8,2956
37
+ archunitpython/files/assertion/custom_file_logic.py,sha256=-t9ziVc0NDXjjLnDB8kWDQ5en7JXo6NXzdcXsj_Ob-E,2970
38
38
  archunitpython/files/assertion/cycle_free.py,sha256=Ib3tmVVErmTpORmRn_rZqOqY0gk54crN_d_IapeWqdI,738
39
39
  archunitpython/files/assertion/depend_on_external_modules.py,sha256=BXGpN-301YOcB446e3U0i2rNNliQuaSJCfdZwKVzs0U,1845
40
- archunitpython/files/assertion/depend_on_files.py,sha256=EGMtDD8KT09BJQwOEMoKj-yTQfY3KLLYWN5SM1BCmpY,2012
41
- archunitpython/files/assertion/matching_files.py,sha256=qNbvU2o_MM6rzM-YUdJZzkltVbenWGC0u5kLH7su6CA,2003
40
+ archunitpython/files/assertion/depend_on_files.py,sha256=9lBj4YNe1jjKJV3r0ntsXfPHoKc_IbwgHhLgMYOs9Ok,2024
41
+ archunitpython/files/assertion/matching_files.py,sha256=1RyYqFA-IzzAXlgqRfiL18jk9xEJzEBY2fp_A3fxjdE,2015
42
42
  archunitpython/files/fluentapi/__init__.py,sha256=wgl8IOqTeQGpNISu-Q8b_j6rTn8aEgoz6t1S5j8z13g,108
43
43
  archunitpython/files/fluentapi/files.py,sha256=oZG0lWV6p0AiGANdoZfYd51H8zY-J4eTSPRTRPBYhs0,17152
44
44
  archunitpython/graph/__init__.py,sha256=vm1jMOoN35IIU7YDs59qPtf_F82YV-QrEGfXhozAOek,756
@@ -65,7 +65,7 @@ archunitpython/metrics/fluentapi/metrics.py,sha256=8OBOL3jVKbM9v_CjNNM9FMfV1JBfl
65
65
  archunitpython/metrics/projection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  archunitpython/slices/__init__.py,sha256=tb8MoZiEqIdmWy7uyhmEtMNm5Fxjuw6atSvDsD131DE,96
67
67
  archunitpython/slices/assertion/__init__.py,sha256=MRwV3d69ljAJ7hFYdxI6UDNC8U4Dm1ImeuLUVKEC9To,280
68
- archunitpython/slices/assertion/admissible_edges.py,sha256=-3o5mGtl81i5I_572x3Z4ZDfqPCyFqjGd7Dg8GRSKhY,3119
68
+ archunitpython/slices/assertion/admissible_edges.py,sha256=NNn1PGsK0LS_Msa3g1cAMQwLzxbot4rQNVRAHzW11pk,3124
69
69
  archunitpython/slices/fluentapi/__init__.py,sha256=tb8MoZiEqIdmWy7uyhmEtMNm5Fxjuw6atSvDsD131DE,96
70
70
  archunitpython/slices/fluentapi/slices.py,sha256=vNoyqmleTDTjnf2i35i2nte-Ycjm-oapfgaf3AhN0QI,7163
71
71
  archunitpython/slices/projection/__init__.py,sha256=tVgcK4gw-bqhUq98vU7_iPE0NEhOPUr7vr1-p7JI1A4,237
@@ -79,7 +79,7 @@ archunitpython/testing/common/__init__.py,sha256=Wc4bC-N4t6giChKjj6wuTGKkb39thcY
79
79
  archunitpython/testing/common/color_utils.py,sha256=2I8Z1SZfWhhgudMgmXY6PPydGxGl35cK_To-GXnSyJg,1226
80
80
  archunitpython/testing/common/violation_factory.py,sha256=yWlvv2U7u-7KoTMfp1QCeJXxTLpPEagKqDHZmPSyrlk,4677
81
81
  archunitpython/testing/pytest_plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
82
- archunitpython-1.5.0.dist-info/METADATA,sha256=ek9DQj2hd0a0h-tvws_nnelozR1PzhZNBLWouBBH0aM,31627
83
- archunitpython-1.5.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
84
- archunitpython-1.5.0.dist-info/licenses/LICENSE,sha256=kaQWfzfHk45CNIx4sIW7Uf1sNW5rmo6BpZ-R8GruuK0,1102
85
- archunitpython-1.5.0.dist-info/RECORD,,
82
+ archunitpython-1.6.0.dist-info/METADATA,sha256=Xi6XRsySw9v7D_T4pyNDQs2qGvZPenNKUMy8nqX4XW4,34913
83
+ archunitpython-1.6.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
84
+ archunitpython-1.6.0.dist-info/licenses/LICENSE,sha256=kaQWfzfHk45CNIx4sIW7Uf1sNW5rmo6BpZ-R8GruuK0,1102
85
+ archunitpython-1.6.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.31.0
2
+ Generator: hatchling 1.32.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any