Skip to content

Commit

Permalink
ignore C0103 in arg parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Aug 3, 2023
1 parent c1ab5cd commit 84bdd80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def check_links(urls):
return True


# pylint: disable=C0103
if __name__ == '__main__':
if len(sys.argv) < 2:
print(f'usage: {sys.argv[0]} <path>')
Expand All @@ -139,3 +140,4 @@ def check_links(urls):
print(f'error {exc}')
sys.exit(1)
sys.exit(0)
# pylint: enable=C0103
2 changes: 2 additions & 0 deletions scripts/yaml_to_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def toml_dump(content):
return toml.dumps(content)


# pylint: disable=C0103
if __name__ == '__main__':
if len(sys.argv) < 2:
print(f"usage: {sys.argv[0]} <yaml-config-path>")
Expand All @@ -54,3 +55,4 @@ def toml_dump(content):
data = replace_none(data)
out = toml_dump(data)
print(out)
# pylint: enable=C0103

0 comments on commit 84bdd80

Please sign in to comment.