mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-14 03:18:06 +00:00
36 lines
802 B
YAML
36 lines
802 B
YAML
# String that LibCST should look for in code which indicates that the
|
|||
|
|
|
||
|
|
# module is generated code.
|
||
|
|
|
||
|
|
generated_code_marker: '@generated'
|
||
|
|
|
||
|
|
# Command line and arguments for invoking a code formatter. Anything
|
||
|
|
|
||
|
|
# specified here must be capable of taking code via stdin and returning
|
||
|
|
|
||
|
|
# formatted code via stdout.
|
||
|
|
|
||
|
|
formatter: ['black', '-']
|
||
|
|
|
||
|
|
# List of regex patterns which LibCST will evaluate against filenames to
|
||
|
|
|
||
|
|
# determine if the module should be touched.
|
||
|
|
|
||
|
|
blacklist_patterns: ['.*replace_functions\.py']
|
||
|
|
|
||
|
|
# List of modules that contain codemods inside of them.
|
||
|
|
|
||
|
|
modules:
|
||
|
|
|
||
|
|
- 'libcst.codemod.commands'
|
||
|
|
- 'mycodemod'
|
||
|
|
|
||
|
|
# Absolute or relative path of the repository root, used for providing
|
||
|
|
|
||
|
|
# full-repo metadata. Relative paths should be specified with this file
|
||
|
|
|
||
|
|
# location as the base.
|
||
|
|
|
||
|
|
repo_root: '.'
|
||
|
|
|