codesorter 0.2.3__tar.gz → 0.2.5__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 (81) hide show
  1. {codesorter-0.2.3 → codesorter-0.2.5}/CHANGES.rst +29 -6
  2. {codesorter-0.2.3 → codesorter-0.2.5}/PKG-INFO +2 -1
  3. {codesorter-0.2.3 → codesorter-0.2.5}/codesorter/const.py +1 -1
  4. {codesorter-0.2.3 → codesorter-0.2.5}/codesorter/sort_code.py +52 -27
  5. {codesorter-0.2.3 → codesorter-0.2.5}/docs/contributing/pre_commit.rst +3 -3
  6. {codesorter-0.2.3 → codesorter-0.2.5}/pyproject.toml +3 -3
  7. codesorter-0.2.5/tests/test_files/barrier_input.py +11 -0
  8. codesorter-0.2.5/tests/test_files/barrier_output.py +11 -0
  9. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_sort_code.py +16 -0
  10. {codesorter-0.2.3 → codesorter-0.2.5}/uv.lock +3 -7
  11. codesorter-0.2.3/.libcst.codemod.yaml +0 -36
  12. {codesorter-0.2.3 → codesorter-0.2.5}/.github/dependabot.yml +0 -0
  13. {codesorter-0.2.3 → codesorter-0.2.5}/.github/workflows/ci.yml +0 -0
  14. {codesorter-0.2.3 → codesorter-0.2.5}/.github/workflows/pre-commit_autoupdate.yml +0 -0
  15. {codesorter-0.2.3 → codesorter-0.2.5}/.github/workflows/prepare_release.yml +0 -0
  16. {codesorter-0.2.3 → codesorter-0.2.5}/.github/workflows/pypi.yml +0 -0
  17. {codesorter-0.2.3 → codesorter-0.2.5}/.github/workflows/scorecard.yml +0 -0
  18. {codesorter-0.2.3 → codesorter-0.2.5}/.github/workflows/stale_action.yml +0 -0
  19. {codesorter-0.2.3 → codesorter-0.2.5}/.github/workflows/tag_release.yml +0 -0
  20. {codesorter-0.2.3 → codesorter-0.2.5}/.gitignore +0 -0
  21. {codesorter-0.2.3 → codesorter-0.2.5}/.pre-commit-config.yaml +0 -0
  22. {codesorter-0.2.3 → codesorter-0.2.5}/.pre-commit-hooks.yaml +0 -0
  23. {codesorter-0.2.3 → codesorter-0.2.5}/.python-version +0 -0
  24. {codesorter-0.2.3 → codesorter-0.2.5}/.readthedocs.yaml +0 -0
  25. {codesorter-0.2.3 → codesorter-0.2.5}/LICENSE.txt +0 -0
  26. {codesorter-0.2.3 → codesorter-0.2.5}/README.rst +0 -0
  27. {codesorter-0.2.3 → codesorter-0.2.5}/codesorter/__init__.py +0 -0
  28. {codesorter-0.2.3 → codesorter-0.2.5}/codesorter/cli.py +0 -0
  29. {codesorter-0.2.3 → codesorter-0.2.5}/codesorter/py.typed +0 -0
  30. {codesorter-0.2.3 → codesorter-0.2.5}/docs/Makefile +0 -0
  31. {codesorter-0.2.3 → codesorter-0.2.5}/docs/code_overview/sort_code.rst +0 -0
  32. {codesorter-0.2.3 → codesorter-0.2.5}/docs/conf.py +0 -0
  33. {codesorter-0.2.3 → codesorter-0.2.5}/docs/docutils.conf +0 -0
  34. {codesorter-0.2.3 → codesorter-0.2.5}/docs/genindex.rst +0 -0
  35. {codesorter-0.2.3 → codesorter-0.2.5}/docs/index.rst +0 -0
  36. {codesorter-0.2.3 → codesorter-0.2.5}/docs/make.bat +0 -0
  37. {codesorter-0.2.3 → codesorter-0.2.5}/docs/package_info/change_log.rst +0 -0
  38. {codesorter-0.2.3 → codesorter-0.2.5}/examples/after_example.py +0 -0
  39. {codesorter-0.2.3 → codesorter-0.2.5}/examples/before_example.py +0 -0
  40. {codesorter-0.2.3 → codesorter-0.2.5}/tests/__init__.py +0 -0
  41. {codesorter-0.2.3 → codesorter-0.2.5}/tests/conftest.py +0 -0
  42. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/alias_function_input.py +0 -0
  43. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/alias_function_output.py +0 -0
  44. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/augmented_assignment_input.py +0 -0
  45. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/augmented_assignment_output.py +0 -0
  46. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/basic_function_input.py +0 -0
  47. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/basic_function_output.py +0 -0
  48. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/class_global_dependency_input.py +0 -0
  49. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/class_global_dependency_output.py +0 -0
  50. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/class_inheritance_input.py +0 -0
  51. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/class_inheritance_output.py +0 -0
  52. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/class_method_input.py +0 -0
  53. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/class_method_output.py +0 -0
  54. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/classmethod_input.py +0 -0
  55. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/classmethod_output.py +0 -0
  56. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/comprehension_dependency_input.py +0 -0
  57. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/comprehension_dependency_output.py +0 -0
  58. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/comprehensive_input.py +0 -0
  59. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/comprehensive_output.py +0 -0
  60. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/constant_ordering_input.py +0 -0
  61. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/constant_ordering_output.py +0 -0
  62. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/custom_decorators_input.py +0 -0
  63. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/custom_decorators_output.py +0 -0
  64. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/keyword_arguments_input.py +0 -0
  65. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/keyword_arguments_output.py +0 -0
  66. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/lazy_annotation_cycle_input.py +0 -0
  67. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/lazy_annotation_cycle_output.py +0 -0
  68. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/mixed_decorators_input.py +0 -0
  69. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/mixed_decorators_output.py +0 -0
  70. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/name_rebinding_input.py +0 -0
  71. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/name_rebinding_output.py +0 -0
  72. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/order_sensitive_input.py +0 -0
  73. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/order_sensitive_output.py +0 -0
  74. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/property_input.py +0 -0
  75. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/property_output.py +0 -0
  76. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/pytest_fixtures_input.py +0 -0
  77. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/pytest_fixtures_output.py +0 -0
  78. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/staticmethod_input.py +0 -0
  79. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/staticmethod_output.py +0 -0
  80. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/underscore_ordering_input.py +0 -0
  81. {codesorter-0.2.3 → codesorter-0.2.5}/tests/test_files/underscore_ordering_output.py +0 -0
@@ -5,18 +5,31 @@
5
5
  codesorter follows `semantic versioning <https://semver.org/>`_.
6
6
 
7
7
  ********************
8
- 0.2.3 (2026/06/14)
8
+ 0.2.5 (2026/06/14)
9
9
  ********************
10
10
 
11
+ **Changed**
12
+
13
+ - Depend on ``ruff`` directly so the formatter is always installed alongside
14
+ ``codesorter``. The CLI shells out to ``ruff format``, which previously only worked
15
+ when ``ruff`` happened to be on ``PATH`` from another source; it is now a runtime
16
+ dependency, so ``codesorter`` is self-contained in a clean environment and in the
17
+ isolated pre-commit hook.
18
+
11
19
  ********************
12
- 0.2.2 (2026/06/14)
20
+ 0.2.4 (2026/06/14)
13
21
  ********************
14
22
 
15
- **Changed**
23
+ **Fixed**
16
24
 
17
- - Format reordered files with ``ruff`` by default instead of ``black``, so a downstream
18
- project no longer needs a ``.libcst.codemod.yaml`` to use the ``codesorter`` CLI or
19
- pre-commit hook. ``ruff`` must be importable on the ``PATH`` when sorting.
25
+ - Never reorder a definition across a side-effecting statement. A bare statement such as
26
+ ``sys.path.insert(0, str(REPO_ROOT))`` is now a barrier, and sorting happens only
27
+ within each segment between barriers, so a constant the statement uses is no longer
28
+ hoisted after it (which raised ``NameError``).
29
+
30
+ ********************
31
+ 0.2.3 (2026/06/14)
32
+ ********************
20
33
 
21
34
  **Fixed**
22
35
 
@@ -27,6 +40,16 @@ codesorter follows `semantic versioning <https://semver.org/>`_.
27
40
  getter/setter/deleter groups, which carry no assignment, are still ordered by their
28
41
  sort key.
29
42
 
43
+ ********************
44
+ 0.2.2 (2026/06/14)
45
+ ********************
46
+
47
+ **Changed**
48
+
49
+ - Format reordered files with ``ruff`` by default instead of ``black``, so a downstream
50
+ project no longer needs a ``.libcst.codemod.yaml`` to use the ``codesorter`` CLI or
51
+ pre-commit hook. ``ruff`` must be importable on the ``PATH`` when sorting.
52
+
30
53
  ********************
31
54
  0.2.1 (2026/06/14)
32
55
  ********************
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codesorter
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary: A Python codemod that sorts and organizes code in your files.
5
5
  Project-URL: Change Log, https://codesorter.readthedocs.io/en/latest/package_info/change_log.html
6
6
  Project-URL: Documentation, https://codesorter.readthedocs.io/
@@ -51,6 +51,7 @@ Classifier: Typing :: Typed
51
51
  Requires-Python: >=3.10
52
52
  Requires-Dist: libcst<2.0.0,>=1.8.6
53
53
  Requires-Dist: pathspec>=1.1.1
54
+ Requires-Dist: ruff>=0.1.2
54
55
  Description-Content-Type: text/x-rst
55
56
 
56
57
  ############
@@ -39,4 +39,4 @@ PLAIN_DECORATOR_PARTS = 1
39
39
 
40
40
  PROPERTY_DECORATOR_PARTS = 2
41
41
 
42
- __version__ = "0.2.3"
42
+ __version__ = "0.2.5"
@@ -488,6 +488,44 @@ class SortCodeCommand(VisitorBasedCodemodCommand, m.MatcherDecoratableTransforme
488
488
  property_type,
489
489
  )
490
490
 
491
+ def _reorder_segment(
492
+ self,
493
+ body: Sequence[cst.BaseStatement],
494
+ new_body: list[cst.BaseStatement],
495
+ *,
496
+ anchor_indexes: list[int],
497
+ trailers_of: dict[int, list[int]],
498
+ ) -> None:
499
+ """Reorder one barrier-free segment of sortable members in place within ``new_body``."""
500
+ if not anchor_indexes:
501
+ return
502
+ positions: list[int] = []
503
+ anchor_nodes: list[_Sortable] = []
504
+ trailers_by_anchor: dict[int, list[cst.BaseStatement]] = {}
505
+ for index in anchor_indexes:
506
+ trailer_indexes = sorted(trailers_of.get(index, []))
507
+ positions.append(index)
508
+ positions.extend(trailer_indexes)
509
+ anchor = cast("_Sortable", body[index])
510
+ anchor_nodes.append(anchor)
511
+ trailers_by_anchor[id(anchor)] = [body[trailer] for trailer in trailer_indexes]
512
+ # Blank-line separators are positional: the n-th anchor in the segment keeps the
513
+ # n-th separator. Trailers are excluded so they stay tight to their anchor.
514
+ anchor_separators = [_split_leading_lines(node)[0] for node in anchor_nodes]
515
+ trailer_ids = {id(trailer) for trailers in trailers_by_anchor.values() for trailer in trailers}
516
+ flattened: list[cst.BaseStatement] = []
517
+ for anchor in self._sorted_items(anchor_nodes):
518
+ flattened.append(anchor)
519
+ flattened.extend(trailers_by_anchor[id(anchor)])
520
+ anchor_index = 0
521
+ for position, member in zip(sorted(positions), flattened, strict=True):
522
+ if id(member) in trailer_ids:
523
+ new_body[position] = member
524
+ continue
525
+ _, attached = _split_leading_lines(member)
526
+ new_body[position] = member.with_changes(leading_lines=[*anchor_separators[anchor_index], *attached])
527
+ anchor_index += 1
528
+
491
529
  def _resolve_dependents(self, node: _Sortable) -> None:
492
530
  dependencies, _ = self._get_dependencies(node)
493
531
  name = _sortable_name(node)
@@ -513,40 +551,27 @@ class SortCodeCommand(VisitorBasedCodemodCommand, m.MatcherDecoratableTransforme
513
551
  Blank-line spacing stays with each slot while comment lines travel with their
514
552
  statement, so reordering never shifts a blank line onto a different statement.
515
553
 
554
+ Sortable members are only reordered within a segment of consecutive sortable
555
+ members; any other statement (an import, a bare expression such as
556
+ ``sys.path.insert(...)``, an ``if`` block) is a barrier that no definition may
557
+ cross, since the barrier may depend on a definition beside it.
558
+
516
559
  """
517
560
  anchors = self._anchor_trailers(body, sort_constants=sort_constants)
518
561
  trailers_of: defaultdict[int, list[int]] = defaultdict(list)
519
562
  for trailer_index, anchor_index in anchors.items():
520
563
  trailers_of[anchor_index].append(trailer_index)
521
- positions: list[int] = []
522
- anchor_nodes: list[_Sortable] = []
523
- trailers_by_anchor: dict[int, list[cst.BaseStatement]] = {}
524
- for index, member in enumerate(body):
525
- if index in anchors or not self._is_sortable(member, sort_constants=sort_constants):
526
- continue
527
- trailer_indexes = sorted(trailers_of.get(index, []))
528
- positions.append(index)
529
- positions.extend(trailer_indexes)
530
- anchor = cast("_Sortable", member)
531
- anchor_nodes.append(anchor)
532
- trailers_by_anchor[id(anchor)] = [body[trailer] for trailer in trailer_indexes]
533
- # Blank-line separators are positional: the n-th anchor in the body keeps the
534
- # n-th separator. Trailers are excluded so they stay tight to their anchor.
535
- anchor_separators = [_split_leading_lines(node)[0] for node in anchor_nodes]
536
- trailer_ids = {id(trailer) for trailers in trailers_by_anchor.values() for trailer in trailers}
537
- flattened: list[cst.BaseStatement] = []
538
- for anchor in self._sorted_items(anchor_nodes):
539
- flattened.append(anchor)
540
- flattened.extend(trailers_by_anchor[id(anchor)])
541
564
  new_body = list(body)
542
- anchor_index = 0
543
- for position, member in zip(sorted(positions), flattened, strict=True):
544
- if id(member) in trailer_ids:
545
- new_body[position] = member
565
+ segment: list[int] = []
566
+ for index, member in enumerate(body):
567
+ if index in anchors:
568
+ continue # a trailer, reordered together with its anchor
569
+ if self._is_sortable(member, sort_constants=sort_constants):
570
+ segment.append(index)
546
571
  continue
547
- _, attached = _split_leading_lines(member)
548
- new_body[position] = member.with_changes(leading_lines=[*anchor_separators[anchor_index], *attached])
549
- anchor_index += 1
572
+ self._reorder_segment(body, new_body, anchor_indexes=segment, trailers_of=trailers_of)
573
+ segment = []
574
+ self._reorder_segment(body, new_body, anchor_indexes=segment, trailers_of=trailers_of)
550
575
  return new_body
551
576
 
552
577
  def _sorted_items(
@@ -21,9 +21,9 @@ hook so the repository is always sorted by the code on the current branch:
21
21
  ***************************
22
22
 
23
23
  Because the hook uses ``language: system``, it runs the ``codesorter`` executable from
24
- your environment instead of an isolated one pre-commit manages. CodeSorter then invokes
25
- ``ruff format`` as its formatter (configured in ``.libcst.codemod.yaml``). Both
26
- ``codesorter`` and ``ruff`` must therefore be on ``PATH`` when the hook runs.
24
+ your environment instead of an isolated one pre-commit manages. CodeSorter always
25
+ invokes ``ruff format`` as its formatter, so both ``codesorter`` and ``ruff`` must be on
26
+ ``PATH`` when the hook runs.
27
27
 
28
28
  Install the development environment and the git hook:
29
29
 
@@ -16,8 +16,7 @@ docs = [
16
16
  "sphinx-autodoc-typehints>=2.5.0"
17
17
  ]
18
18
  lint = [
19
- "pre-commit>=4.6.0",
20
- "ruff>=0.15.17"
19
+ "pre-commit>=4.6.0"
21
20
  ]
22
21
  test = [
23
22
  "coverage>=7.14.1",
@@ -50,7 +49,8 @@ classifiers = [
50
49
  ]
51
50
  dependencies = [
52
51
  "libcst>=1.8.6,<2.0.0",
53
- "pathspec>=1.1.1"
52
+ "pathspec>=1.1.1",
53
+ "ruff>=0.1.2"
54
54
  ]
55
55
  description = "A Python codemod that sorts and organizes code in your files."
56
56
  dynamic = ["version"]
@@ -0,0 +1,11 @@
1
+ """Definitions never cross a side-effecting statement that may depend on them."""
2
+
3
+ import sys
4
+ from pathlib import Path
5
+
6
+ ZEBRA = 1
7
+ REPO_ROOT = Path(__file__).resolve().parent
8
+ sys.path.insert(0, str(REPO_ROOT))
9
+
10
+ BANANA = 3
11
+ APPLE = 2
@@ -0,0 +1,11 @@
1
+ """Definitions never cross a side-effecting statement that may depend on them."""
2
+
3
+ import sys
4
+ from pathlib import Path
5
+
6
+ REPO_ROOT = Path(__file__).resolve().parent
7
+ ZEBRA = 1
8
+ sys.path.insert(0, str(REPO_ROOT))
9
+
10
+ APPLE = 2
11
+ BANANA = 3
@@ -48,6 +48,22 @@ class TestSortCodeCommand:
48
48
 
49
49
  assert expected_code == result.code
50
50
 
51
+ def test_barrier(self, test_files):
52
+ """Test that definitions are not reordered across a side-effecting statement.
53
+
54
+ A bare statement such as ``sys.path.insert(0, str(REPO_ROOT))`` is a barrier:
55
+ the constants before it (which it may use) must stay before it, so sorting
56
+ happens only within each segment between barriers rather than across the whole
57
+ module.
58
+
59
+ """
60
+ input_code, expected_code = test_files
61
+ context = CodemodContext()
62
+ command = SortCodeCommand(context)
63
+ result = command.transform_module(cst.parse_module(input_code))
64
+
65
+ assert expected_code == result.code
66
+
51
67
  def test_basic_function(self, test_files):
52
68
  """Test that functions are sorted correctly."""
53
69
  input_code, expected_code = test_files
@@ -190,6 +190,7 @@ source = { editable = "." }
190
190
  dependencies = [
191
191
  { name = "libcst" },
192
192
  { name = "pathspec" },
193
+ { name = "ruff" },
193
194
  ]
194
195
 
195
196
  [package.dev-dependencies]
@@ -199,7 +200,6 @@ dev = [
199
200
  { name = "pre-commit" },
200
201
  { name = "pyright" },
201
202
  { name = "pytest" },
202
- { name = "ruff" },
203
203
  { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
204
204
  { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.11.*'" },
205
205
  { name = "sphinx", version = "9.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" },
@@ -219,7 +219,6 @@ docs = [
219
219
  ]
220
220
  lint = [
221
221
  { name = "pre-commit" },
222
- { name = "ruff" },
223
222
  ]
224
223
  test = [
225
224
  { name = "coverage" },
@@ -235,6 +234,7 @@ type = [
235
234
  requires-dist = [
236
235
  { name = "libcst", specifier = ">=1.8.6,<2.0.0" },
237
236
  { name = "pathspec", specifier = ">=1.1.1" },
237
+ { name = "ruff", specifier = ">=0.1.2" },
238
238
  ]
239
239
 
240
240
  [package.metadata.requires-dev]
@@ -244,7 +244,6 @@ dev = [
244
244
  { name = "pre-commit", specifier = ">=4.6.0" },
245
245
  { name = "pyright", specifier = ">=1.1.410" },
246
246
  { name = "pytest", specifier = ">=9.0.3" },
247
- { name = "ruff", specifier = ">=0.15.17" },
248
247
  { name = "sphinx", specifier = ">=8.1.3" },
249
248
  { name = "sphinx-autodoc-typehints", specifier = ">=2.5.0" },
250
249
  { name = "tox-uv", specifier = ">=1.35.2" },
@@ -254,10 +253,7 @@ docs = [
254
253
  { name = "sphinx", specifier = ">=8.1.3" },
255
254
  { name = "sphinx-autodoc-typehints", specifier = ">=2.5.0" },
256
255
  ]
257
- lint = [
258
- { name = "pre-commit", specifier = ">=4.6.0" },
259
- { name = "ruff", specifier = ">=0.15.17" },
260
- ]
256
+ lint = [{ name = "pre-commit", specifier = ">=4.6.0" }]
261
257
  test = [
262
258
  { name = "coverage", specifier = ">=7.14.1" },
263
259
  { name = "pytest", specifier = ">=9.0.3" },
@@ -1,36 +0,0 @@
1
- # String that LibCST should look for in code which indicates that the
2
- # module is generated code.
3
- generated_code_marker: '@generated'
4
- # Command line and arguments for invoking a code formatter. Anything
5
- # specified here must be capable of taking code via stdin and returning
6
- # formatted code via stdout.
7
- formatter: ['ruff', 'format', '-']
8
- # List of regex patterns which LibCST will evaluate against filenames to
9
- # determine if the module should be touched.
10
- blacklist_patterns:
11
- - '.*/\.bzr/.*'
12
- - '.*/\.direnv/.*'
13
- - '.*/\.eggs/.*'
14
- - '.*/\.git/.*'
15
- - '.*/\.hg/.*'
16
- - '.*/\.mypy_cache/.*'
17
- - '.*/\.nox/.*'
18
- - '.*/\.pytest_cache/.*'
19
- - '.*/\.ruff_cache/.*'
20
- - '.*/\.svn/.*'
21
- - '.*/\.tox/.*'
22
- - '.*/\.venv/.*'
23
- - '.*/__pycache__/.*'
24
- - '.*/__pypackages__/.*'
25
- - '.*/build/.*'
26
- - '.*/dist/.*'
27
- - '.*/env/.*'
28
- - '.*/node_modules/.*'
29
- - '.*/venv/.*'
30
- # List of modules that contain codemods inside of them.
31
- modules:
32
- - 'codesorter'
33
- # Absolute or relative path of the repository root, used for providing
34
- # full-repo metadata. Relative paths should be specified with this file
35
- # location as the base.
36
- repo_root: '.'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes