##// END OF EJS Templates
Refactor with Pathlib for setupbase.py (#14543)...
Refactor with Pathlib for setupbase.py (#14543) Continued efforts for #12515 though it has been closed. Validated to be okay by running the following. - `pip install -e ".[all]"` - `pytest` Please note that there are also some syntactical modifications, and part of them are from the darker linter.

File last commit:

r25608:70b7090a
r28928:25703b5b merge
Show More
configtraits.py
16 lines | 414 B | text/x-python | PythonLexer
"""Directives and roles for documenting traitlets config options.
::
.. configtrait:: Application.log_datefmt
Description goes here.
Cross reference like this: :configtrait:`Application.log_datefmt`.
"""
def setup(app):
app.add_object_type('configtrait', 'configtrait', objname='Config option')
metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
return metadata