inspectr 0.0.3__tar.gz → 0.0.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: inspectr
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: A collection of python tools to inspect code quality.
5
5
  Maintainer-email: Alex Mueller <amueller474@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -1,9 +1,8 @@
1
- # mytool/duplicates.py
2
1
  import sys
3
2
  import hashlib
4
3
  from collections import defaultdict
5
4
 
6
- def find_duplicates(files, block_size=1, min_occur=2):
5
+ def find_duplicates(files, block_size=10, min_occur=3):
7
6
  """
8
7
  Find duplicate blocks of code across files.
9
8
 
@@ -46,6 +45,6 @@ def main(args=None) -> None:
46
45
  print("Usage: inspectr duplicates file1.py [file2.py ...]")
47
46
  return
48
47
 
49
- for fname, lnum, count in find_duplicates(args, block_size=1, min_occur=2):
48
+ for fname, lnum, count in find_duplicates(args, block_size=10, min_occur=3):
50
49
  print(f"{fname}:{lnum} (occurs {count} times)")
51
50
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: inspectr
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: A collection of python tools to inspect code quality.
5
5
  Maintainer-email: Alex Mueller <amueller474@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "inspectr"
8
- version = "0.0.3"
8
+ version = "0.0.4"
9
9
  description = "A collection of python tools to inspect code quality. "
10
10
  maintainers = [
11
11
  {name = "Alex Mueller", email="amueller474@gmail.com"},
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes