Skip to content
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
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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 Dec 17, 2024
12999d6
Update pyproject.toml
kenodegard Dec 17, 2024
abd1807
Refactor StubLoader into SpyEnvironment, SpyContext, and SpyFileSyste…
kenodegard Dec 17, 2024
62dd42b
Distinguish between required and optional context
kenodegard Dec 17, 2024
dcf2536
Default details to open when errors occur
kenodegard Dec 17, 2024
2d0b698
Fix get_source auditing
kenodegard Dec 17, 2024
d2cebef
Rename Spy to Audit
kenodegard Dec 17, 2024
d806acb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 17, 2024
81cd709
Rename spy contextmanager to audit
kenodegard Dec 17, 2024
2f0b54b
Initialize test suite
kenodegard Jan 7, 2025
7b5bda7
Add test_dump_summary
kenodegard Jan 7, 2025
3476500
Parametrize TemplateState tests
kenodegard Jan 7, 2025
e9046a8
Add initial test for template_file
kenodegard Jan 8, 2025
f9ab207
Initialize test suite
kenodegard Jan 8, 2025
132e3cf
Install all dependencies
kenodegard Jan 8, 2025
0d9ef43
Upload coverage
kenodegard Jan 8, 2025
06d63b9
Add badges
kenodegard Jan 8, 2025
ee03d8e
Update README.md
kenodegard Jan 8, 2025
fa2e2cd
Merge branch 'add-tests' into template-filess-audit-context
kenodegard Jan 8, 2025
abac53b
Update test_template_files.py
kenodegard Jan 8, 2025
e824be9
Merge remote-tracking branch 'upstream/main' into template-filess-aud…
kenodegard Jan 9, 2025
0b328c6
Stringify
kenodegard Jan 9, 2025
bd357d2
Standardize Python
kenodegard Jan 9, 2025
5e0833d
Enable dependabot updates for pip
kenodegard Jan 9, 2025
cacdba9
Add analyze step with automated error reports
kenodegard Jan 9, 2025
e145ba9
Minor cleanup
kenodegard Jan 9, 2025
92e1cce
Update existing failures
kenodegard Jan 9, 2025
09b0ba2
Merge branch 'scheduled-tests' into template-filess-audit-context
kenodegard Jan 9, 2025
f4ee1ae
Catch IsADirectoryError
kenodegard Jan 9, 2025
115502b
Typing
kenodegard Jan 9, 2025
ca383dd
Pytest ids
kenodegard Jan 9, 2025
3db7491
Update README
kenodegard Jan 10, 2025
8eaa05a
Add GHA test
kenodegard Jan 10, 2025
cf43b10
Fix stub audit
kenodegard Jan 10, 2025
c595976
Comment template-files summary
kenodegard Jan 10, 2025
b2f7942
Update tests
kenodegard Jan 10, 2025
73ae56d
Use a sticky comment instead
kenodegard Jan 10, 2025
619f950
Merge remote-tracking branch 'upstream/main' into template-filess-aud…
kenodegard Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions combine-durations/action.py
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre-commit/ruff changes

Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

from __future__ import annotations

import sys
import json
import os
import sys
from argparse import ArgumentParser, ArgumentTypeError, Namespace
from functools import partial
from pathlib import Path
import os
from statistics import fmean
from typing import NamedTuple

from rich.console import Console
from rich import box
from rich.console import Console
from rich.table import Table

console = Console(color_system="standard", soft_wrap=True, record=True)
Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
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
]
Loading
Loading