Commit graph

47 commits

Author SHA1 Message Date
Chris Mayo
b06c6da75d
Merge pull request #470 from cjmayo/sphinx
Generate html documentation and man pages using Sphinx
2020-08-22 16:26:41 +01:00
Chris Mayo
95ddeea635 Add man page description translations 2020-08-15 17:02:40 +01:00
Chris Mayo
d1834f0619 Generate html documentation with Sphinx
Create code documentation:
make -C doc code

Create html:
make -C doc html
2020-08-15 17:02:38 +01:00
Chris Mayo
80763ed1ea Add slack to the list of ignored schemes
slack:// is a way to interact with a local Slack client [1], and is not
something that LinkChecker can check.

[1] https://api.slack.com/reference/deep-linking#client
2020-08-09 17:10:26 +01:00
Chris Mayo
cec9b78f5e Additional review comments on black linkcheck/ 2020-06-03 20:06:36 +01:00
Chris Mayo
6b3cb18546 Restore better_exchook2.py and colorama.py to pre-Black state
These files are based on published packages.

better_exchook2.py was derived from better_exchook.py in:
https://pypi.org/project/better_exchook/

colorama.py was derived from win32.py in:
https://pypi.org/project/colorama/

Files modified in:
a92a684a ("Run black on linkcheck/", 2020-05-30)
2020-06-03 20:06:36 +01:00
Chris Mayo
ac0967e251 Fix remaining flake8 violations in linkcheck/
linkcheck/better_exchook2.py:28:89: E501 line too long (90 > 88 characters)
linkcheck/better_exchook2.py:155:9: E722 do not use bare 'except'
linkcheck/better_exchook2.py:166:9: E722 do not use bare 'except'
linkcheck/better_exchook2.py:289:13: E741 ambiguous variable name 'l'
linkcheck/better_exchook2.py:299:9: E722 do not use bare 'except'
linkcheck/containers.py:48:13: E731 do not assign a lambda expression, use a def
linkcheck/ftpparse.py:123:89: E501 line too long (93 > 88 characters)
linkcheck/loader.py:46:47: E203 whitespace before ':'
linkcheck/logconf.py:45:29: E231 missing whitespace after ','
linkcheck/robotparser2.py:157:89: E501 line too long (95 > 88 characters)
linkcheck/robotparser2.py:182:89: E501 line too long (89 > 88 characters)
linkcheck/strformat.py:181:16: E203 whitespace before ':'
linkcheck/strformat.py:181:43: E203 whitespace before ':'
linkcheck/strformat.py:253:9: E731 do not assign a lambda expression, use a def
linkcheck/strformat.py:254:9: E731 do not assign a lambda expression, use a def
linkcheck/strformat.py:341:89: E501 line too long (111 > 88 characters)
linkcheck/url.py:102:32: E203 whitespace before ':'
linkcheck/url.py:277:5: E741 ambiguous variable name 'l'
linkcheck/url.py:402:5: E741 ambiguous variable name 'l'
linkcheck/checker/__init__.py:203:1: E402 module level import not at top of file
linkcheck/checker/fileurl.py:200:89: E501 line too long (103 > 88 characters)
linkcheck/checker/mailtourl.py:122:60: E203 whitespace before ':'
linkcheck/checker/mailtourl.py:157:89: E501 line too long (96 > 88 characters)
linkcheck/checker/mailtourl.py:190:89: E501 line too long (109 > 88 characters)
linkcheck/checker/mailtourl.py:200:89: E501 line too long (111 > 88 characters)
linkcheck/checker/mailtourl.py:249:89: E501 line too long (106 > 88 characters)
linkcheck/checker/unknownurl.py:226:23: W291 trailing whitespace
linkcheck/checker/urlbase.py:245:89: E501 line too long (101 > 88 characters)
linkcheck/configuration/confparse.py:236:89: E501 line too long (186 > 88 characters)
linkcheck/configuration/confparse.py:247:89: E501 line too long (111 > 88 characters)
linkcheck/configuration/__init__.py:164:9: E266 too many leading '#' for block comment
linkcheck/configuration/__init__.py:184:9: E266 too many leading '#' for block comment
linkcheck/configuration/__init__.py:190:9: E266 too many leading '#' for block comment
linkcheck/configuration/__init__.py:195:9: E266 too many leading '#' for block comment
linkcheck/configuration/__init__.py:198:9: E266 too many leading '#' for block comment
linkcheck/configuration/__init__.py:435:89: E501 line too long (90 > 88 characters)
linkcheck/director/aggregator.py:45:43: E231 missing whitespace after ','
linkcheck/director/aggregator.py:178:89: E501 line too long (106 > 88 characters)
linkcheck/logger/__init__.py:29:1: E731 do not assign a lambda expression, use a def
linkcheck/logger/__init__.py:108:13: E741 ambiguous variable name 'l'
linkcheck/logger/__init__.py:275:19: F821 undefined name '_'
linkcheck/logger/__init__.py:342:16: F821 undefined name '_'
linkcheck/logger/__init__.py:380:13: F821 undefined name '_'
linkcheck/logger/__init__.py:384:13: F821 undefined name '_'
linkcheck/logger/__init__.py:387:13: F821 undefined name '_'
linkcheck/logger/__init__.py:396:13: F821 undefined name '_'
linkcheck/network/__init__.py:1:1: W391 blank line at end of file
linkcheck/plugins/locationinfo.py:89:9: E731 do not assign a lambda expression, use a def
linkcheck/plugins/locationinfo.py:91:9: E731 do not assign a lambda expression, use a def
linkcheck/plugins/markdowncheck.py:112:89: E501 line too long (111 > 88 characters)
linkcheck/plugins/markdowncheck.py:141:9: E741 ambiguous variable name 'l'
linkcheck/plugins/markdowncheck.py:165:23: E203 whitespace before ':'
linkcheck/plugins/viruscheck.py:95:42: E203 whitespace before ':'
2020-05-30 17:01:36 +01:00
Chris Mayo
152dbeb9b8
Merge pull request #428 from cjmayo/flake8-tests
Resolve flake8 violations in tests/
2020-05-29 19:47:17 +01:00
Chris Mayo
ec35dc0191
Merge pull request #426 from cjmayo/bookmarks
Remove unused httputil.has_header_value() and bookmarks code
2020-05-29 19:19:38 +01:00
Marius Gedminas
321054f387 Tell flake8 to ignore files that should not be checked
The Python files under build/ are mere copies, not worth checking.

_LinkChecker_configdata.py is a generated file, not stored in the VCS,
not really part of the source.
2020-05-29 11:58:15 +03:00
Chris Mayo
87039913b2 Fix remaining flake8 violations in tests/
tests/test_clamav.py:58:89: E501 line too long (90 > 88 characters)
tests/test_containers.py:38:9: F841 local variable 'dummy' is assigned to but never used
tests/test_dummy.py:35:9: F841 local variable 'dummy' is assigned to but never used
tests/test_ftpparse.py:94:89: E501 line too long (96 > 88 characters)
tests/test_url.py:128:89: E501 line too long (130 > 88 characters)
tests/test_strformat.py:62:9: E741 ambiguous variable name 'l'
tests/test_strformat.py:136:9: E731 do not assign a lambda expression, use a def
tests/checker/ftpserver.py:94:9: E722 do not use bare 'except'
tests/checker/httpserver.py:55:39: E231 missing whitespace after ','
tests/checker/httpserver.py:224:9: E722 do not use bare 'except'
tests/checker/telnetserver.py:84:9: E722 do not use bare 'except'
tests/checker/__init__.py:71:89: E501 line too long (119 > 88 characters)
tests/checker/__init__.py:292:13: E741 ambiguous variable name 'l'
tests/checker/test_http_misc.py:30:1: W293 blank line contains whitespace
tests/checker/test_https.py:21:1: F401 'tests.need_network' imported but unused
tests/checker/test_news.py:35:1: E302 expected 2 blank lines, found 1
2020-05-28 20:29:13 +01:00
Chris Mayo
abdb160413 Remove unused bookmarks code that supports linkcheck-gui
linkchecker does not need to find a bookmark file, it is given the URL.
Most bookmarks are detected by their MIME type, Firefox is different
because it uses a SQLite database.
2020-05-28 19:44:53 +01:00
Chris Mayo
182e394139 Set max-line-length to 88 as recommended by Black
https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
2020-05-26 20:20:57 +01:00
Chris Mayo
a8301f43ca Update setup.cfg flake8 section
- Add the _n gettext prefix as a builtin, resolves "F821 undefined
  name"
- Include the main executable when running flake8 from the top directory
  without specifying files
- Ignore E402,F401 module import violations for specific files
2020-05-26 19:48:28 +01:00
Marius Gedminas
10c56ceca5 Remove unneeded globs from MANIFEST.in
qhp and qhcp are Qt help files, removed with the GUI

rej is a rejected patch, definitely not part of the source.

There are no bat/cer/pvk/pfk files under tests.

Now python3 setup.py -q sdist no longer produces warnings.
2020-05-25 22:03:44 +03:00
Marius Gedminas
93612adcf7 Add check-manifest to CI
Closes #414.
2020-05-25 19:33:17 +03:00
Marius Gedminas
72e7c600f3 Add a 'tox -e flake8' 2020-05-19 19:24:22 +03:00
Bastian Kleineidam
e3ab90246d Remove platform-specific installer stuff and ensure a build .whl wheel file can be built. 2016-01-17 09:05:21 +01:00
Bastian Kleineidam
16b84be490 Updated all links. 2013-01-06 18:10:13 +01:00
Bastian Kleineidam
b2ad5523a7 Support RPM building with cx_Freeze 2012-05-23 22:49:18 +02:00
Bastian Kleineidam
0c11fcd0c3 Adjust RPM group name. 2012-05-23 21:41:33 +02:00
Bastian Kleineidam
e6e3ab5905 Fix RPM doc files. 2012-05-23 21:13:31 +02:00
Bastian Kleineidam
cee1861d25 Remove old filenames. 2011-04-22 08:20:51 +02:00
Bastian Kleineidam
1bff1c367b Test for nose achievements plugin before using it. 2010-03-21 20:11:49 +01:00
Bastian Kleineidam
44eae96c17 Comment out nose achievements since most of the people wont have them installed. 2010-03-08 15:09:11 +01:00
Bastian Kleineidam
86d37eab7e Configure nose achievements, if installed. 2010-03-06 10:24:20 +01:00
calvin
6a7192e9b7 Fix bdist_wininst installation
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3803 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-06-11 07:33:54 +00:00
calvin
53f9ad6301 Fix rpm doc file names
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3731 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-04-25 15:48:51 +00:00
calvin
4c0620c498 use default python
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3559 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2007-06-16 22:08:41 +00:00
calvin
87b75b70b1 fix typo cgi/cgi-bin
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3408 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2006-07-26 08:08:39 +00:00
calvin
8999104ba5 fix rpm install
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3062 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2006-02-04 09:31:41 +00:00
calvin
58c02f0f4c use python2.4 in bdist_rpm
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2430 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2005-03-12 00:27:19 +00:00
calvin
1701f05c9c remove old README from rpm docs
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1941 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2004-11-09 15:49:43 +00:00
calvin
1e4c215b57 fix man page compression of rpm install
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1770 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2004-09-08 19:24:40 +00:00
calvin
11d90dfdf2 add man file to rpm docs
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1727 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2004-09-04 08:37:29 +00:00
calvin
c296ce71bb moved install script
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1696 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2004-09-03 09:27:37 +00:00
calvin
40c632e672 added wininst config
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1688 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2004-09-02 22:09:41 +00:00
calvin
9562cb0549 updated rpm spec
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1666 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2004-09-01 09:39:58 +00:00
calvin
3f9dc4e2fa remove draft
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1308 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2004-04-04 17:05:57 +00:00
calvin
9785b00699 fix for rpm build
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@634 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2002-11-27 00:40:59 +00:00
calvin
b52734d566 prerelease
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@251 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2001-04-28 21:40:49 +00:00
calvin
68276e93e4 prerelease
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@249 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2001-04-28 18:37:10 +00:00
calvin
ed1ab5c3a9 devel changes
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@226 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2001-01-22 23:02:54 +00:00
calvin
5b046e6e3a rpm script
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@213 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2000-12-17 01:32:05 +00:00
calvin
728350db51 man page
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@202 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2000-11-22 15:32:54 +00:00
calvin
8172e52f91 release
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@200 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2000-11-16 12:45:16 +00:00
calvin
5b1c8f9e1a restructuring of installation
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@166 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2000-10-10 09:28:27 +00:00