jaymd96-pants-baseline 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/PKG-INFO +1 -1
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/__about__.py +1 -1
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/audit.py +5 -7
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/audit_rules.py +1 -1
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/fmt_rules.py +6 -8
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/lint_rules.py +5 -7
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/test_rules.py +9 -13
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/typecheck_rules.py +5 -7
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/subsystems/ruff.py +2 -2
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/subsystems/ty.py +2 -2
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/subsystems/uv.py +2 -2
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/.gitignore +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/LICENSE +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/README.md +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/pyproject.toml +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/__init__.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/__init__.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/fmt.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/lint.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/test.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/typecheck.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/register.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/__init__.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/subsystems/__init__.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/subsystems/baseline.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/targets.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/tests/__init__.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/tests/conftest.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/tests/integration/__init__.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/tests/integration/test_goals.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/tests/unit/__init__.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/tests/unit/test_subsystems.py +0 -0
- {jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/tests/unit/test_targets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jaymd96-pants-baseline
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Opinionated Python code quality baseline plugin for Pants build system
|
|
5
5
|
Project-URL: Homepage, https://github.com/jaymd96/pants-baseline
|
|
6
6
|
Project-URL: Repository, https://github.com/jaymd96/pants-baseline.git
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/audit.py
RENAMED
|
@@ -49,14 +49,12 @@ async def run_baseline_audit(
|
|
|
49
49
|
console.print_stdout(f" Ignoring: {', '.join(uv_subsystem.audit_ignore_vulns)}")
|
|
50
50
|
console.print_stdout("")
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
ignore_vulns=tuple(uv_subsystem.audit_ignore_vulns),
|
|
57
|
-
output_format=uv_subsystem.output_format,
|
|
58
|
-
),
|
|
52
|
+
audit_request = UvAuditRequest(
|
|
53
|
+
lock_file=uv_subsystem.lock_file,
|
|
54
|
+
ignore_vulns=tuple(uv_subsystem.audit_ignore_vulns),
|
|
55
|
+
output_format=uv_subsystem.output_format,
|
|
59
56
|
)
|
|
57
|
+
result = await Get(AuditResult, {UvAuditRequest: audit_request})
|
|
60
58
|
|
|
61
59
|
if result.stdout:
|
|
62
60
|
console.print_stdout(result.stdout)
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/fmt_rules.py
RENAMED
|
@@ -65,13 +65,11 @@ async def run_ruff_fmt(
|
|
|
65
65
|
)
|
|
66
66
|
|
|
67
67
|
# Get source files
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
sources_fields=[fs.sources for fs in field_sets],
|
|
72
|
-
for_sources_types=(BaselineSourcesField,),
|
|
73
|
-
),
|
|
68
|
+
source_files_request = SourceFilesRequest(
|
|
69
|
+
sources_fields=[fs.sources for fs in field_sets],
|
|
70
|
+
for_sources_types=(BaselineSourcesField,),
|
|
74
71
|
)
|
|
72
|
+
sources = await Get(SourceFiles, {SourceFilesRequest: source_files_request})
|
|
75
73
|
|
|
76
74
|
if not sources.files:
|
|
77
75
|
return FmtResult(
|
|
@@ -101,9 +99,9 @@ async def run_ruff_fmt(
|
|
|
101
99
|
level=LogLevel.DEBUG,
|
|
102
100
|
)
|
|
103
101
|
|
|
104
|
-
result = await Get(FallibleProcessResult, Process
|
|
102
|
+
result = await Get(FallibleProcessResult, {Process: process})
|
|
105
103
|
|
|
106
|
-
output_snapshot = await Get(Snapshot, Digest
|
|
104
|
+
output_snapshot = await Get(Snapshot, {Digest: result.output_digest})
|
|
107
105
|
|
|
108
106
|
return FmtResult(
|
|
109
107
|
input=sources.snapshot,
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/lint_rules.py
RENAMED
|
@@ -77,13 +77,11 @@ async def run_ruff_lint(
|
|
|
77
77
|
)
|
|
78
78
|
|
|
79
79
|
# Get source files
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
sources_fields=[fs.sources for fs in field_sets],
|
|
84
|
-
for_sources_types=(BaselineSourcesField,),
|
|
85
|
-
),
|
|
80
|
+
source_files_request = SourceFilesRequest(
|
|
81
|
+
sources_fields=[fs.sources for fs in field_sets],
|
|
82
|
+
for_sources_types=(BaselineSourcesField,),
|
|
86
83
|
)
|
|
84
|
+
sources = await Get(SourceFiles, {SourceFilesRequest: source_files_request})
|
|
87
85
|
|
|
88
86
|
if not sources.files:
|
|
89
87
|
return LintResult(
|
|
@@ -116,7 +114,7 @@ async def run_ruff_lint(
|
|
|
116
114
|
level=LogLevel.DEBUG,
|
|
117
115
|
)
|
|
118
116
|
|
|
119
|
-
result = await Get(FallibleProcessResult, Process
|
|
117
|
+
result = await Get(FallibleProcessResult, {Process: process})
|
|
120
118
|
|
|
121
119
|
return LintResult(
|
|
122
120
|
exit_code=result.exit_code,
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/test_rules.py
RENAMED
|
@@ -73,22 +73,18 @@ async def run_pytest(
|
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
# Get test source files
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
sources_fields=[fs.test_sources for fs in field_sets],
|
|
80
|
-
for_sources_types=(BaselineTestSourcesField,),
|
|
81
|
-
),
|
|
76
|
+
test_source_files_request = SourceFilesRequest(
|
|
77
|
+
sources_fields=[fs.test_sources for fs in field_sets],
|
|
78
|
+
for_sources_types=(BaselineTestSourcesField,),
|
|
82
79
|
)
|
|
80
|
+
test_sources = await Get(SourceFiles, {SourceFilesRequest: test_source_files_request})
|
|
83
81
|
|
|
84
82
|
# Get source files for coverage
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
sources_fields=[fs.sources for fs in field_sets],
|
|
89
|
-
for_sources_types=(BaselineSourcesField,),
|
|
90
|
-
),
|
|
83
|
+
source_files_request = SourceFilesRequest(
|
|
84
|
+
sources_fields=[fs.sources for fs in field_sets],
|
|
85
|
+
for_sources_types=(BaselineSourcesField,),
|
|
91
86
|
)
|
|
87
|
+
sources = await Get(SourceFiles, {SourceFilesRequest: source_files_request})
|
|
92
88
|
|
|
93
89
|
if not test_sources.files:
|
|
94
90
|
return TestResult(
|
|
@@ -132,7 +128,7 @@ async def run_pytest(
|
|
|
132
128
|
level=LogLevel.DEBUG,
|
|
133
129
|
)
|
|
134
130
|
|
|
135
|
-
result = await Get(FallibleProcessResult, Process
|
|
131
|
+
result = await Get(FallibleProcessResult, {Process: process})
|
|
136
132
|
|
|
137
133
|
return TestResult(
|
|
138
134
|
exit_code=result.exit_code,
|
|
@@ -82,13 +82,11 @@ async def run_ty_check(
|
|
|
82
82
|
)
|
|
83
83
|
|
|
84
84
|
# Get source files
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
sources_fields=[fs.sources for fs in field_sets],
|
|
89
|
-
for_sources_types=(BaselineSourcesField,),
|
|
90
|
-
),
|
|
85
|
+
source_files_request = SourceFilesRequest(
|
|
86
|
+
sources_fields=[fs.sources for fs in field_sets],
|
|
87
|
+
for_sources_types=(BaselineSourcesField,),
|
|
91
88
|
)
|
|
89
|
+
sources = await Get(SourceFiles, {SourceFilesRequest: source_files_request})
|
|
92
90
|
|
|
93
91
|
if not sources.files:
|
|
94
92
|
return CheckResults(
|
|
@@ -123,7 +121,7 @@ async def run_ty_check(
|
|
|
123
121
|
level=LogLevel.DEBUG,
|
|
124
122
|
)
|
|
125
123
|
|
|
126
|
-
result = await Get(FallibleProcessResult, Process
|
|
124
|
+
result = await Get(FallibleProcessResult, {Process: process})
|
|
127
125
|
|
|
128
126
|
return CheckResults(
|
|
129
127
|
results=[
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/subsystems/ruff.py
RENAMED
|
@@ -13,8 +13,8 @@ class RuffSubsystem(Subsystem):
|
|
|
13
13
|
It replaces Black, isort, Flake8, and many other tools in a single binary.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
options_scope = "ruff"
|
|
17
|
-
help = "Ruff linting and formatting configuration."
|
|
16
|
+
options_scope = "baseline-ruff"
|
|
17
|
+
help = "Ruff linting and formatting configuration for baseline plugin."
|
|
18
18
|
|
|
19
19
|
version = StrOption(
|
|
20
20
|
default="0.2.0",
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/subsystems/ty.py
RENAMED
|
@@ -20,8 +20,8 @@ class TySubsystem(Subsystem):
|
|
|
20
20
|
- Rust implementation with obsessive performance focus
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
-
options_scope = "ty"
|
|
24
|
-
help = "ty type checker configuration (Astral's next-gen type checker)."
|
|
23
|
+
options_scope = "baseline-ty"
|
|
24
|
+
help = "ty type checker configuration for baseline plugin (Astral's next-gen type checker)."
|
|
25
25
|
|
|
26
26
|
version = StrOption(
|
|
27
27
|
default="0.1.0",
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/subsystems/uv.py
RENAMED
|
@@ -18,8 +18,8 @@ class UvSubsystem(Subsystem):
|
|
|
18
18
|
- Virtual environment management
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
options_scope = "uv"
|
|
22
|
-
help = "uv dependency management and security auditing configuration."
|
|
21
|
+
options_scope = "baseline-uv"
|
|
22
|
+
help = "uv dependency management and security auditing configuration for baseline plugin."
|
|
23
23
|
|
|
24
24
|
version = StrOption(
|
|
25
25
|
default="0.5.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/__init__.py
RENAMED
|
File without changes
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/__init__.py
RENAMED
|
File without changes
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/fmt.py
RENAMED
|
File without changes
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/lint.py
RENAMED
|
File without changes
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/test.py
RENAMED
|
File without changes
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/goals/typecheck.py
RENAMED
|
File without changes
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/register.py
RENAMED
|
File without changes
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/src/pants_baseline/rules/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaymd96_pants_baseline-0.1.1 → jaymd96_pants_baseline-0.1.2}/tests/integration/test_goals.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|