mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 03:09:14 +00:00
fix pylint C0103
This commit is contained in:
@@ -45,8 +45,8 @@ def toml_dump(content):
|
||||
return tomli_w.dumps(content)
|
||||
|
||||
|
||||
# pylint: disable=C0103
|
||||
if __name__ == '__main__':
|
||||
def main():
|
||||
"""entry point"""
|
||||
if len(sys.argv) < 2:
|
||||
print(f"usage: {sys.argv[0]} <yaml-config-path>")
|
||||
sys.exit(1)
|
||||
@@ -55,4 +55,7 @@ if __name__ == '__main__':
|
||||
data = replace_none(data)
|
||||
out = toml_dump(data)
|
||||
print(out)
|
||||
# pylint: enable=C0103
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user