-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved templating audits #238
Open
kenodegard
wants to merge
38
commits into
main
Choose a base branch
from
template-filess-audit-context
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
9daa717
Include workflow name in cache key
kenodegard 12999d6
Update pyproject.toml
kenodegard abd1807
Refactor StubLoader into SpyEnvironment, SpyContext, and SpyFileSyste…
kenodegard 62dd42b
Distinguish between required and optional context
kenodegard dcf2536
Default details to open when errors occur
kenodegard 2d0b698
Fix get_source auditing
kenodegard d2cebef
Rename Spy to Audit
kenodegard d806acb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 81cd709
Rename spy contextmanager to audit
kenodegard 2f0b54b
Initialize test suite
kenodegard 7b5bda7
Add test_dump_summary
kenodegard 3476500
Parametrize TemplateState tests
kenodegard e9046a8
Add initial test for template_file
kenodegard f9ab207
Initialize test suite
kenodegard 132e3cf
Install all dependencies
kenodegard 0d9ef43
Upload coverage
kenodegard 06d63b9
Add badges
kenodegard ee03d8e
Update README.md
kenodegard fa2e2cd
Merge branch 'add-tests' into template-filess-audit-context
kenodegard abac53b
Update test_template_files.py
kenodegard e824be9
Merge remote-tracking branch 'upstream/main' into template-filess-aud…
kenodegard 0b328c6
Stringify
kenodegard bd357d2
Standardize Python
kenodegard 5e0833d
Enable dependabot updates for pip
kenodegard cacdba9
Add analyze step with automated error reports
kenodegard e145ba9
Minor cleanup
kenodegard 92e1cce
Update existing failures
kenodegard 09b0ba2
Merge branch 'scheduled-tests' into template-filess-audit-context
kenodegard f4ee1ae
Catch IsADirectoryError
kenodegard 115502b
Typing
kenodegard ca383dd
Pytest ids
kenodegard 3db7491
Update README
kenodegard 8eaa05a
Add GHA test
kenodegard cf43b10
Fix stub audit
kenodegard c595976
Comment template-files summary
kenodegard b2f7942
Update tests
kenodegard 73ae56d
Use a sticky comment instead
kenodegard 619f950
Merge remote-tracking branch 'upstream/main' into template-filess-aud…
kenodegard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
[tool.codespell] | ||
# see https://github.com/codespell-project/codespell#using-a-config-file | ||
skip = '.git' | ||
|
||
[tool.ruff] | ||
target-version = "py39" | ||
|
||
[tool.ruff.lint] | ||
# see https://docs.astral.sh/ruff/rules/ | ||
select = [ | ||
"E", # pycodestyle errors | ||
"F", # pyflakes | ||
"FA", # flake8-future-annotations | ||
"I", # isort | ||
"ISC", # flake8-implicit-str-concat | ||
"RUF100", # Unused noqa directive | ||
"T10", # flake8-debugger | ||
"TCH", # flake8-type-checking | ||
"UP", # pyupgrade | ||
"W", # pycodestyle warnings | ||
] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-commit/ruff changes