Skip to content

Conversation

@timlinux
Copy link
Contributor

@timlinux timlinux commented Aug 13, 2025

This is a draft (there are still a few checks to add).

These checks are to address #152

Adds a number of different QA checks to the project and applying the fixes needed to make the QA checks pass.

image

pre-commit run --all-files -v
fix end of files...............................................................Passed

  • hook id: end-of-file-fixer
  • duration: 0.14s
    trim trailing whitespace.......................................................Passed
  • hook id: trailing-whitespace
  • duration: 0.15s
    check yaml.....................................................................Passed
  • hook id: check-yaml
  • duration: 0.09s
    check json.....................................................................Passed
  • hook id: check-json
  • duration: 0.06s
    🖤 black.......................................................................Passed
  • hook id: black
  • duration: 0.22s

All done! ✨ 🍰 ✨
53 files left unchanged.

🗑️ Remove core file if it exists...............................................Passed

  • hook id: remove-core-file
  • duration: 0.01s
    🌐 Ensure UTF-8 encoding declaration in Python files...........................Passed
  • hook id: ensure-utf8-encoding
  • duration: 0.02s
    📚 Ensure Google-style docstrings in Python modules............................Passed
  • hook id: ensure-google-docstrings
  • duration: 0.02s
    🐍 flake8 Python Linter........................................................Passed
  • hook id: flake8
  • duration: 0.35s
    📦 isort - sort Python imports.................................................Passed
  • hook id: isort
  • duration: 0.41s
    ❄️ Nixfmt (RFC style)..........................................................Passed
  • hook id: nixfmt
  • duration: 0.01s
    📝 markdownlint - Markdown linter..............................................Passed
  • hook id: markdownlint
  • duration: 0.18s
    🔤 cspell - Spell checker for Markdown.........................................Passed
  • hook id: cspell
  • duration: 0.86s
    🔍 yamllint - YAML linter......................................................Passed
  • hook id: yamllint
  • duration: 0.12s
    🤖 actionlint - GitHub Actions workflow linter.................................Passed
  • hook id: actionlint
  • duration: 0.03s
    🔒 Bandit - Python security analysis...........................................Passed
  • hook id: bandit-scripts
  • duration: 0.55s

[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.268451

Test results:
No issues identified.

Code scanned:
Total lines of code: 1497
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.143294

Test results:
No issues identified.

Code scanned:
Total lines of code: 533
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.149772

Test results:
No issues identified.

Code scanned:
Total lines of code: 501
Total lines skipped (#nosec): 1

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.186506

Test results:
No issues identified.

Code scanned:
Total lines of code: 871
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.167240

Test results:
No issues identified.

Code scanned:
Total lines of code: 1045
Total lines skipped (#nosec): 5

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.047275

Test results:
No issues identified.

Code scanned:
Total lines of code: 243
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.201418

Test results:
No issues identified.

Code scanned:
Total lines of code: 808
Total lines skipped (#nosec): 1

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.263021

Test results:
No issues identified.

Code scanned:
Total lines of code: 1915
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.177210

Test results:
No issues identified.

Code scanned:
Total lines of code: 1195
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.184407

Test results:
No issues identified.

Code scanned:
Total lines of code: 628
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.269966

Test results:
No issues identified.

Code scanned:
Total lines of code: 1268
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.190363

Test results:
No issues identified.

Code scanned:
Total lines of code: 779
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.130196

Test results:
No issues identified.

Code scanned:
Total lines of code: 296
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.13.5
Run started:2025-08-13 18:56:27.099141

Test results:
No issues identified.

Code scanned:
Total lines of code: 125
Total lines skipped (#nosec): 0

Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):

🐚 ShellCheck - scripts........................................................Passed

  • hook id: shellcheck-scripts
  • duration: 0.16s
    🛡️ Bearer - Security & privacy scanner - planet_explorer.......................Passed
  • hook id: bearer-plugin
  • duration: 38.21s

Analyzing codebase
⠋ (121526/-) [0s]
Loading rules
Scanning target planet_explorer
└ 100% [===============] (164/164) [35s]
Running Detectors
Generating dataflow
Evaluating rules
└ 100% [===============] (234/234) [1s]

Security Report

=====================================

Rules:
https://docs.bearer.com/reference/rules [v0.48.2]

Language Default Rules Custom Rules Files
Python 88 0 291

Need to add your own custom rule? Check out the guide: https://docs.bearer.com/guides/custom-rule

=====================================

SUCCESS

88 checks were run and no failures were detected. Great job! 👏

Bearer found:

  • 2 unique data type(s), representing 7 occurrences, including PII, Personal Data.
  • 2 external service(s).

🔎 CodeQL - Static code analysis...............................................Failed

  • hook id: codeql-scan
  • duration: 1.56s
  • exit code: 2

Running queries.
A fatal error occurred: Query pack codeql/python-queries cannot be found. Check the spelling of the pack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant