Skip to content

Commit 15039a4

Browse files
authored
Merge pull request #458 from jmchilton/readme
README Linting and Fixes.
2 parents c5ac2f7 + e27b686 commit 15039a4

File tree

2 files changed

+45
-16
lines changed

2 files changed

+45
-16
lines changed

README.rst

+39-15
Original file line numberDiff line numberDiff line change
@@ -413,43 +413,67 @@ Extension points
413413
The following functions can be provided to main(), to load_tool(), or to the
414414
executor to override or augment the listed behaviors.
415415

416-
executor(tool, job_order_object, **kwargs)
417-
(Process, Dict[Text, Any], **Any) -> Tuple[Dict[Text, Any], Text]
416+
executor
417+
::
418+
419+
executor(tool, job_order_object, **kwargs)
420+
(Process, Dict[Text, Any], **Any) -> Tuple[Dict[Text, Any], Text]
418421

419422
A toplevel workflow execution loop, should synchronously execute a process
420423
object and return an output object.
421424

422-
makeTool(toolpath_object, **kwargs)
423-
(Dict[Text, Any], **Any) -> Process
425+
makeTool
426+
::
427+
428+
makeTool(toolpath_object, **kwargs)
429+
(Dict[Text, Any], **Any) -> Process
424430

425431
Construct a Process object from a document.
426432

427-
selectResources(request)
428-
(Dict[Text, int]) -> Dict[Text, int]
433+
selectResources
434+
::
435+
436+
selectResources(request)
437+
(Dict[Text, int]) -> Dict[Text, int]
429438

430439
Take a resource request and turn it into a concrete resource assignment.
431440

432-
versionfunc()
433-
() -> Text
441+
versionfunc
442+
::
443+
444+
()
445+
() -> Text
434446

435447
Return version string.
436448

437-
make_fs_access(basedir)
438-
(Text) -> StdFsAccess
449+
make_fs_access
450+
::
451+
452+
make_fs_access(basedir)
453+
(Text) -> StdFsAccess
439454

440455
Return a file system access object.
441456

442-
fetcher_constructor(cache, session)
443-
(Dict[unicode, unicode], requests.sessions.Session) -> Fetcher
457+
fetcher_constructor
458+
::
459+
460+
fetcher_constructor(cache, session)
461+
(Dict[unicode, unicode], requests.sessions.Session) -> Fetcher
444462

445463
Construct a Fetcher object with the supplied cache and HTTP session.
446464

447-
resolver(document_loader, document)
448-
(Loader, Union[Text, dict[Text, Any]]) -> Text
465+
resolver
466+
::
467+
468+
resolver(document_loader, document)
469+
(Loader, Union[Text, dict[Text, Any]]) -> Text
449470

450471
Resolve a relative document identifier to an absolute one which can be fetched.
451472

452473
logger_handler
453-
logging.Handler
474+
::
475+
476+
logger_handler
477+
logging.Handler
454478

455479
Handler object for logging.

tox.ini

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27-lint, py27-unit, py27-pipconflictchecker, py36-lint, py35-lint, py34-lint, py33-lint, py35-mypy2
2+
envlist = py27-lint, py27-unit, py27-pipconflictchecker, py36-lint, py35-lint, py34-lint, py33-lint, py35-mypy2, py27-lint-readme
33
skipsdist = True
44

55
[travis]
@@ -36,3 +36,8 @@ deps = pip-conflict-checker
3636

3737
[testenv:py27-unit]
3838
commands = python setup.py test
39+
40+
[testenv:py27-lint-readme]
41+
commands = python setup.py check -r -s
42+
deps =
43+
readme

0 commit comments

Comments
 (0)