1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

development: Also exclude .venv/ as that's VSCode default

This commit is contained in:
Athanasius 2022-12-21 12:30:53 +00:00
parent 579c95024b
commit 87b48031a0
No known key found for this signature in database
GPG Key ID: 772697E181BB2767
4 changed files with 6 additions and 5 deletions

View File

@ -6,7 +6,7 @@ exclude =
dist.win32/ dist.win32/
FDevIDs/ FDevIDs/
venv/ venv/
venv-py39/ .venv/
wix/ wix/
# Show exactly where in a line the error happened # Show exactly where in a line the error happened

3
.gitignore vendored
View File

@ -18,7 +18,8 @@ EDMarketConnector.VisualElementsManifest.xml
.idea .idea
.vscode .vscode
venv .venv/
venv/
*.code-workspace *.code-workspace
htmlcov/ htmlcov/
.ignored .ignored

View File

@ -11,7 +11,7 @@ addopts = "--cov . --cov plugins --cov-report=term-missing --no-cov-on-fail"
# --cov-fail-under 80" # --cov-fail-under 80"
[tool.coverage.run] [tool.coverage.run]
omit = [ "tests/*", "venv/*", "dist.win32/*" ] omit = [ "tests/*", "venv/*", ".venv/*", "dist.win32/*" ]
plugins = [ "coverage_conditional_plugin" ] plugins = [ "coverage_conditional_plugin" ]
[tool.coverage.coverage_conditional_plugin.rules] [tool.coverage.coverage_conditional_plugin.rules]

View File

@ -139,7 +139,7 @@ def scan_file(path: pathlib.Path) -> list[ast.Call]:
return out return out
def scan_directory(path: pathlib.Path, skip: list[pathlib.Path] = None) -> dict[pathlib.Path, list[ast.Call]]: def scan_directory(path: pathlib.Path, skip: list[pathlib.Path] | None = None) -> dict[pathlib.Path, list[ast.Call]]:
""" """
Scan a directory for expected callsites. Scan a directory for expected callsites.
@ -293,7 +293,7 @@ def generate_lang_template(data: dict[pathlib.Path, list[ast.Call]]) -> str:
if __name__ == '__main__': if __name__ == '__main__':
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('--directory', help='Directory to search from', default='.') parser.add_argument('--directory', help='Directory to search from', default='.')
parser.add_argument('--ignore', action='append', help='directories to ignore', default=['venv', '.git']) parser.add_argument('--ignore', action='append', help='directories to ignore', default=['venv', '.venv', '.git'])
group = parser.add_mutually_exclusive_group() group = parser.add_mutually_exclusive_group()
group.add_argument('--json', action='store_true', help='JSON output') group.add_argument('--json', action='store_true', help='JSON output')
group.add_argument('--lang', help='en.template "strings" output to specified file, "-" for stdout') group.add_argument('--lang', help='en.template "strings" output to specified file, "-" for stdout')