dlen 0.3.0__tar.gz → 0.3.2__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,7 +1,7 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: dlen
3
- Version: 0.3.0
4
- Summary: Check how long your functions and classes are
3
+ Version: 0.3.2
4
+ Summary: Check how long your functions and classes are, counting the code you actually read and not your docstrings or blank lines
5
5
  Project-URL: Homepage, https://github.com/Endika/dlen
6
6
  Project-URL: Repository, https://github.com/Endika/dlen
7
7
  Project-URL: Issues, https://github.com/Endika/dlen/issues
@@ -76,8 +76,8 @@ the interface.
76
76
 
77
77
  ### Where the defaults come from
78
78
 
79
- They were measured, not chosen. Over 28,390 functions in the Python standard library,
80
- numpy, Pillow, rich, pytest, httpx, mypy and coverage, counted the way above:
79
+ They were measured over 28,390 functions in the Python standard library, numpy,
80
+ Pillow, rich, pytest, httpx, mypy and coverage, counted the way above:
81
81
 
82
82
  | lines | functions flagged |
83
83
  | --- | --- |
@@ -101,8 +101,9 @@ If you want the stricter Clean Code reading, it is one flag away:
101
101
  dlen src/ --warn-function 12 --max-function 20
102
102
  ```
103
103
 
104
- Versions before 0.2.0 shipped 12 and 20. 0.3.0 stopped counting docstrings and blank
105
- lines, which made every function measure shorter, so the thresholds came down with it.
104
+ Versions before 0.2.0 shipped 12 and 20, and 0.2.0 raised them to 30 and 50. 0.3.0 stopped
105
+ counting docstrings and blank lines, which made every function measure shorter, so the
106
+ thresholds came down with it.
106
107
 
107
108
  ### Exit codes
108
109
 
@@ -50,8 +50,8 @@ the interface.
50
50
 
51
51
  ### Where the defaults come from
52
52
 
53
- They were measured, not chosen. Over 28,390 functions in the Python standard library,
54
- numpy, Pillow, rich, pytest, httpx, mypy and coverage, counted the way above:
53
+ They were measured over 28,390 functions in the Python standard library, numpy,
54
+ Pillow, rich, pytest, httpx, mypy and coverage, counted the way above:
55
55
 
56
56
  | lines | functions flagged |
57
57
  | --- | --- |
@@ -75,8 +75,9 @@ If you want the stricter Clean Code reading, it is one flag away:
75
75
  dlen src/ --warn-function 12 --max-function 20
76
76
  ```
77
77
 
78
- Versions before 0.2.0 shipped 12 and 20. 0.3.0 stopped counting docstrings and blank
79
- lines, which made every function measure shorter, so the thresholds came down with it.
78
+ Versions before 0.2.0 shipped 12 and 20, and 0.2.0 raised them to 30 and 50. 0.3.0 stopped
79
+ counting docstrings and blank lines, which made every function measure shorter, so the
80
+ thresholds came down with it.
80
81
 
81
82
  ### Exit codes
82
83
 
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "dlen"
7
- version = "0.3.0"
8
- description = "Check how long your functions and classes are"
7
+ version = "0.3.2"
8
+ description = "Check how long your functions and classes are, counting the code you actually read and not your docstrings or blank lines"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  license = "MIT"
@@ -10,7 +10,7 @@ from dlen.core import Code, Level, Limits, check_file, check_paths, check_source
10
10
 
11
11
  HERE = Path("sample.py")
12
12
 
13
- # Los tests de forma fijan sus umbrales: lo que prueban es la detección, no los defaults.
13
+ # Shape tests pin their own thresholds: they test detection, not the defaults.
14
14
  STRICT = Limits(warn_function=12, max_function=20, max_class=500)
15
15
 
16
16
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes