Skip to content

Commit

Permalink
fix: typing of cli arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
simojo committed Nov 11, 2023
1 parent e1b08c6 commit 1af4336
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 8 deletions.
71 changes: 71 additions & 0 deletions analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@

# PASSED: **ID:** 'C001', **Name:** 'class-definition', **Pattern:** './/ClassDef', min=1, max=None

- /_scratch/chasten/chasten/enumerations.py - 3 matches
- /_scratch/chasten/chasten/results.py - 6 matches
- /_scratch/chasten/chasten/server.py - 1 matches
- /_scratch/chasten/chasten/constants.py - 10 matches
- /_scratch/chasten/chasten/debug.py - 2 matches

# PASSED: **ID:** 'F001', **Name:** 'all-function-definition', **Pattern:** './/FunctionDef', min=1, max=None

- /_scratch/chasten/tests/test_filesystem.py - 16 matches
- /_scratch/chasten/tests/test_util.py - 5 matches
- /_scratch/chasten/tests/test_main.py - 18 matches
- /_scratch/chasten/tests/test_configuration.py - 3 matches
- /_scratch/chasten/tests/test_checks.py - 8 matches
- /_scratch/chasten/tests/test_validate.py - 4 matches
- /_scratch/chasten/tests/test_debug.py - 8 matches
- /_scratch/chasten/tests/test_process.py - 3 matches
- /_scratch/chasten/tests/test_constants.py - 5 matches
- /_scratch/chasten/chasten/database.py - 6 matches
- /_scratch/chasten/chasten/server.py - 2 matches
- /_scratch/chasten/chasten/util.py - 8 matches
- /_scratch/chasten/chasten/main.py - 10 matches
- /_scratch/chasten/chasten/process.py - 4 matches
- /_scratch/chasten/chasten/output.py - 12 matches
- /_scratch/chasten/chasten/checks.py - 9 matches
- /_scratch/chasten/chasten/validate.py - 4 matches
- /_scratch/chasten/chasten/configuration.py - 10 matches
- /_scratch/chasten/chasten/filesystem.py - 12 matches

# PASSED: **ID:** 'F002', **Name:** 'dummy-test-non-test-function-definition', **Pattern:** './/FunctionDef\[not(contains(@name, "test_"))]', min=None, max=None

- /_scratch/chasten/tests/test_main.py - 1 matches
- /_scratch/chasten/chasten/database.py - 6 matches
- /_scratch/chasten/chasten/server.py - 2 matches
- /_scratch/chasten/chasten/util.py - 8 matches
- /_scratch/chasten/chasten/main.py - 10 matches
- /_scratch/chasten/chasten/process.py - 4 matches
- /_scratch/chasten/chasten/output.py - 10 matches
- /_scratch/chasten/chasten/checks.py - 9 matches
- /_scratch/chasten/chasten/validate.py - 4 matches
- /_scratch/chasten/chasten/configuration.py - 10 matches
- /_scratch/chasten/chasten/filesystem.py - 12 matches

# PASSED: **ID:** 'CL001', **Name:** 'dummy-test-single-nested-if', **Pattern:** './/FunctionDef/body//If', min=None, max=None

- /_scratch/chasten/tests/test_filesystem.py - 1 matches
- /_scratch/chasten/tests/test_util.py - 1 matches
- /_scratch/chasten/tests/test_checks.py - 1 matches
- /_scratch/chasten/tests/test_process.py - 1 matches
- /_scratch/chasten/tests/test_constants.py - 1 matches
- /_scratch/chasten/chasten/database.py - 12 matches
- /_scratch/chasten/chasten/util.py - 4 matches
- /_scratch/chasten/chasten/main.py - 26 matches
- /_scratch/chasten/chasten/process.py - 5 matches
- /_scratch/chasten/chasten/output.py - 7 matches
- /_scratch/chasten/chasten/checks.py - 13 matches
- /_scratch/chasten/chasten/validate.py - 3 matches
- /_scratch/chasten/chasten/configuration.py - 15 matches
- /_scratch/chasten/chasten/filesystem.py - 11 matches

# PASSED: **ID:** 'CL002', **Name:** 'dummy-test-double-nested-if', **Pattern:** './/FunctionDef/body//If\[ancestor::If and not(parent::orelse)]', min=None, max=None

- /_scratch/chasten/chasten/database.py - 4 matches
- /_scratch/chasten/chasten/main.py - 8 matches
- /_scratch/chasten/chasten/output.py - 1 matches
- /_scratch/chasten/chasten/checks.py - 3 matches
- /_scratch/chasten/chasten/validate.py - 1 matches
- /_scratch/chasten/chasten/configuration.py - 3 matches
- /_scratch/chasten/chasten/filesystem.py - 3 matches
2 changes: 1 addition & 1 deletion chasten/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def analyze( # noqa: PLR0912, PLR0913, PLR0915
writable=True,
resolve_path=True,
),
config: Path = typer.Option(
config: str = typer.Option(
None,
"--config",
"-c",
Expand Down
11 changes: 4 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1af4336

Please sign in to comment.