Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3b62c2ff
Commit
3b62c2ff
authored
Jan 03, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable the line length checker by default.
parent
7044b118
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Doc/Makefile
Doc/Makefile
+1
-1
Doc/tools/rstlint.py
Doc/tools/rstlint.py
+7
-2
No files found.
Doc/Makefile
View file @
3b62c2ff
...
...
@@ -142,4 +142,4 @@ dist:
cp
build/latex/docs-pdf.tar.bz2
dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2
check
:
$(PYTHON)
tools/rstlint.py
-i
tools
-s
2
$(PYTHON)
tools/rstlint.py
-i
tools
Doc/tools/rstlint.py
View file @
3b62c2ff
...
...
@@ -91,7 +91,6 @@ def check_suspicious_constructs(fn, lines):
@
checker
(
'.py'
,
'.rst'
)
def
check_whitespace
(
fn
,
lines
):
"""Check for whitespace and line length issues."""
lasti
=
0
for
lno
,
line
in
enumerate
(
lines
):
if
'
\
r
'
in
line
:
yield
lno
+
1
,
'
\
\
r in line'
...
...
@@ -99,7 +98,13 @@ def check_whitespace(fn, lines):
yield
lno
+
1
,
'OMG TABS!!!1'
if
line
[:
-
1
].
rstrip
(
'
\
t
'
)
!=
line
[:
-
1
]:
yield
lno
+
1
,
'trailing whitespace'
if
len
(
line
)
>
86
:
@
checker
(
'.rst'
,
severity
=
0
)
def
check_line_length
(
fn
,
lines
):
"""Check for line length; this checker is not run by default."""
for
lno
,
line
in
enumerate
(
lines
):
if
len
(
line
)
>
81
:
# don't complain about tables, links and function signatures
if
line
.
lstrip
()[
0
]
not
in
'+|'
and
\
'http://'
not
in
line
and
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment