Skip to content

Commit 01aade4

Browse files
Fix for line_length not being read from gdformatrc (#362)
* Removed the default value from --line-length, since this is now handled by the config * Set default line length in default config
1 parent 5df5952 commit 01aade4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

gdtoolkit/formatter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"excluded_directories": {".git"},
1818
"safety_checks": None,
1919
"use_spaces": None,
20-
"line_length": None,
20+
"line_length": 100,
2121
}
2222
)
2323

gdtoolkit/formatter/__main__.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
(implies --check).
1717
-f --fast Skip safety checks.
1818
-l --line-length=<int> How many characters per line to allow.
19-
[default: 100]
2019
-s --use-spaces=<int> Use spaces for indent instead of tabs.
2120
-h --help Show this screen.
2221
--version Show version.

0 commit comments

Comments
 (0)