jaymd96-pants-baseline 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,385 @@
1
+ Metadata-Version: 2.4
2
+ Name: jaymd96-pants-baseline
3
+ Version: 0.1.0
4
+ Summary: Opinionated Python code quality baseline plugin for Pants build system
5
+ Project-URL: Homepage, https://github.com/jaymd96/pants-baseline
6
+ Project-URL: Repository, https://github.com/jaymd96/pants-baseline.git
7
+ Project-URL: Documentation, https://github.com/jaymd96/pants-baseline#readme
8
+ Author: James
9
+ License: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: baseline,linting,pants,plugin,pytest,python,quality,ruff,ty
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Plugins
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Software Development :: Build Tools
22
+ Classifier: Topic :: Software Development :: Quality Assurance
23
+ Requires-Python: <4,>=3.11
24
+ Provides-Extra: dev
25
+ Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
26
+ Requires-Dist: pytest>=7.4.0; extra == 'dev'
27
+ Requires-Dist: ruff>=0.2.0; extra == 'dev'
28
+ Description-Content-Type: text/markdown
29
+
30
+ # jaymd96-pants-baseline
31
+
32
+ An opinionated Python code quality baseline plugin for the [Pants](https://www.pantsbuild.org/) build system.
33
+
34
+ ## Overview
35
+
36
+ This plugin integrates modern, high-performance tools from the Astral ecosystem to enforce consistent code quality standards across Python projects:
37
+
38
+ | Tool | Purpose | Performance |
39
+ |------|---------|-------------|
40
+ | **Ruff** | Linting & Formatting | 100-1000x faster than Flake8/Black |
41
+ | **ty** | Type Checking | 10-60x faster than MyPy |
42
+ | **uv** | Dependency Security Audit | 10-100x faster than pip |
43
+ | **pytest** | Testing with Coverage | Industry standard |
44
+
45
+ ## Installation
46
+
47
+ Add the plugin to your `pants.toml`:
48
+
49
+ ```toml
50
+ [GLOBAL]
51
+ backend_packages = [
52
+ "pants.backend.python",
53
+ "pants_baseline",
54
+ ]
55
+
56
+ plugins = [
57
+ "jaymd96-pants-baseline==0.1.0",
58
+ ]
59
+ ```
60
+
61
+ ## Quick Start
62
+
63
+ ### 1. Define a baseline project
64
+
65
+ Create a `BUILD` file in your project root:
66
+
67
+ ```python
68
+ baseline_python_project(
69
+ name="my_project",
70
+ sources=["src/**/*.py"],
71
+ test_sources=["tests/**/*.py"],
72
+ python_version="3.11",
73
+ line_length=120,
74
+ strict=True,
75
+ coverage_threshold=80,
76
+ )
77
+ ```
78
+
79
+ ### 2. Run quality checks
80
+
81
+ ```bash
82
+ # Lint with Ruff
83
+ pants baseline-lint ::
84
+
85
+ # Format with Ruff
86
+ pants baseline-fmt ::
87
+
88
+ # Type check with ty
89
+ pants baseline-typecheck ::
90
+
91
+ # Run tests with coverage
92
+ pants baseline-test ::
93
+
94
+ # Security audit with uv
95
+ pants baseline-audit ::
96
+ ```
97
+
98
+ ## Configuration
99
+
100
+ ### Global Configuration (`pants.toml`)
101
+
102
+ ```toml
103
+ [python-baseline]
104
+ # Enable/disable all baseline checks
105
+ enabled = true
106
+
107
+ # Target Python version
108
+ python_version = "3.11"
109
+
110
+ # Maximum line length
111
+ line_length = 120
112
+
113
+ # Source and test directories
114
+ src_roots = ["src"]
115
+ test_roots = ["tests"]
116
+
117
+ # Minimum coverage threshold
118
+ coverage_threshold = 80
119
+
120
+ # Enable strict mode for all tools
121
+ strict_mode = true
122
+
123
+ # Patterns to exclude
124
+ exclude_patterns = [
125
+ ".venv",
126
+ "__pycache__",
127
+ "migrations",
128
+ ]
129
+ ```
130
+
131
+ ### Ruff Configuration
132
+
133
+ ```toml
134
+ [ruff]
135
+ version = "0.2.0"
136
+
137
+ # Lint rules to enable
138
+ select = [
139
+ "E", # pycodestyle errors
140
+ "W", # pycodestyle warnings
141
+ "F", # pyflakes
142
+ "I", # isort
143
+ "N", # pep8-naming
144
+ "UP", # pyupgrade
145
+ "B", # flake8-bugbear
146
+ "C4", # flake8-comprehensions
147
+ "SIM", # flake8-simplify
148
+ "RUF", # Ruff-specific
149
+ ]
150
+
151
+ # Rules to ignore
152
+ ignore = ["E501"]
153
+
154
+ # Formatting options
155
+ quote_style = "double"
156
+ indent_style = "space"
157
+
158
+ # Auto-fix options
159
+ fix = true
160
+ unsafe_fixes = false
161
+ ```
162
+
163
+ ### ty Configuration
164
+
165
+ ```toml
166
+ [ty]
167
+ version = "0.1.0"
168
+
169
+ # Enable strict type checking
170
+ strict = true
171
+
172
+ # Reporting options
173
+ report_missing_imports = true
174
+ report_unused_imports = true
175
+ report_unused_variables = true
176
+
177
+ # Include/exclude paths
178
+ include = ["src", "tests"]
179
+ exclude = [".venv", "dist"]
180
+
181
+ # Output format (text, json, github)
182
+ output_format = "text"
183
+ ```
184
+
185
+ ### uv Configuration
186
+
187
+ ```toml
188
+ [uv]
189
+ version = "0.5.0"
190
+
191
+ # Security auditing
192
+ audit_enabled = true
193
+ audit_ignore_vulns = []
194
+ audit_fail_on_warning = false
195
+
196
+ # Lock file
197
+ lock_file = "uv.lock"
198
+ require_lock = true
199
+
200
+ # Output format
201
+ output_format = "text"
202
+ ```
203
+
204
+ ## Target Fields
205
+
206
+ The `baseline_python_project` target supports the following fields:
207
+
208
+ | Field | Type | Default | Description |
209
+ |-------|------|---------|-------------|
210
+ | `sources` | `list[str]` | `["**/*.py"]` | Python source file patterns |
211
+ | `test_sources` | `list[str]` | `["tests/**/*.py"]` | Test file patterns |
212
+ | `python_version` | `str` | `"3.11"` | Target Python version |
213
+ | `line_length` | `int` | `120` | Maximum line length |
214
+ | `strict` | `bool` | `True` | Enable strict mode |
215
+ | `coverage_threshold` | `int` | `80` | Minimum coverage % |
216
+ | `skip_lint` | `bool` | `False` | Skip Ruff linting |
217
+ | `skip_fmt` | `bool` | `False` | Skip Ruff formatting |
218
+ | `skip_typecheck` | `bool` | `False` | Skip ty type checking |
219
+ | `skip_test` | `bool` | `False` | Skip pytest |
220
+ | `skip_audit` | `bool` | `False` | Skip uv security audit |
221
+
222
+ ## Goals
223
+
224
+ ### `baseline-lint`
225
+
226
+ Run Ruff linting on Python files.
227
+
228
+ ```bash
229
+ pants baseline-lint src/::
230
+ ```
231
+
232
+ ### `baseline-fmt`
233
+
234
+ Format Python files with Ruff.
235
+
236
+ ```bash
237
+ pants baseline-fmt src/::
238
+
239
+ # Check formatting without modifying files
240
+ pants baseline-fmt --check src/::
241
+ ```
242
+
243
+ ### `baseline-typecheck`
244
+
245
+ Run ty type checking.
246
+
247
+ ```bash
248
+ pants baseline-typecheck src/::
249
+ ```
250
+
251
+ ### `baseline-test`
252
+
253
+ Run pytest with coverage.
254
+
255
+ ```bash
256
+ pants baseline-test tests/::
257
+
258
+ # Run specific test markers
259
+ pants baseline-test --pytest-args="-m unit" tests/::
260
+ ```
261
+
262
+ ### `baseline-audit`
263
+
264
+ Run uv security audit on dependencies.
265
+
266
+ ```bash
267
+ pants baseline-audit ::
268
+
269
+ # Ignore specific vulnerabilities
270
+ pants --uv-audit-ignore-vulns="['GHSA-xxxx']" baseline-audit ::
271
+ ```
272
+
273
+ ## Example Project Structure
274
+
275
+ ```
276
+ my-project/
277
+ ├── BUILD
278
+ ├── pants.toml
279
+ ├── pyproject.toml
280
+ ├── uv.lock
281
+ ├── src/
282
+ │ └── my_package/
283
+ │ ├── BUILD
284
+ │ ├── __init__.py
285
+ │ └── main.py
286
+ └── tests/
287
+ ├── BUILD
288
+ ├── conftest.py
289
+ └── test_main.py
290
+ ```
291
+
292
+ ### Root `BUILD` file
293
+
294
+ ```python
295
+ baseline_python_project(
296
+ name="my_project",
297
+ sources=["src/**/*.py"],
298
+ test_sources=["tests/**/*.py"],
299
+ )
300
+ ```
301
+
302
+ ### `pants.toml`
303
+
304
+ ```toml
305
+ [GLOBAL]
306
+ pants_version = "2.20.0"
307
+ backend_packages = [
308
+ "pants.backend.python",
309
+ "pants_baseline",
310
+ ]
311
+ plugins = ["jaymd96-pants-baseline==0.1.0"]
312
+
313
+ [python]
314
+ interpreter_constraints = ["CPython>=3.11,<4"]
315
+
316
+ [python-baseline]
317
+ python_version = "3.11"
318
+ line_length = 120
319
+ coverage_threshold = 80
320
+
321
+ [ruff]
322
+ select = ["E", "F", "I", "B", "UP", "RUF"]
323
+
324
+ [ty]
325
+ strict = true
326
+ ```
327
+
328
+ ## Why This Stack?
329
+
330
+ ### Performance Comparison
331
+
332
+ | Task | Traditional Stack | Baseline Stack | Speedup |
333
+ |------|-------------------|----------------|---------|
334
+ | Lint (50K LOC) | 20s (Flake8) | 0.4s (Ruff) | **50x** |
335
+ | Format (50K LOC) | 8s (Black) | 0.3s (Ruff) | **26x** |
336
+ | Type Check | 45s (MyPy) | 4.7ms (ty) | **9500x** |
337
+ | Pre-commit | 18s | 0.3s | **60x** |
338
+
339
+ ### Tool Consolidation
340
+
341
+ | Traditional | Baseline |
342
+ |-------------|----------|
343
+ | Black | Ruff format |
344
+ | isort | Ruff (I rules) |
345
+ | Flake8 + plugins | Ruff lint |
346
+ | MyPy/Pyright | ty |
347
+ | pip-audit | uv audit |
348
+
349
+ ## Development
350
+
351
+ ### Setup
352
+
353
+ ```bash
354
+ cd python-baseline
355
+ hatch env create
356
+ ```
357
+
358
+ ### Run tests
359
+
360
+ ```bash
361
+ hatch run test
362
+ hatch run test-cov
363
+ ```
364
+
365
+ ### Lint and format
366
+
367
+ ```bash
368
+ hatch run lint
369
+ hatch run fmt
370
+ ```
371
+
372
+ ## License
373
+
374
+ Apache License 2.0
375
+
376
+ ## Contributing
377
+
378
+ Contributions are welcome! Please read our contributing guidelines before submitting a PR.
379
+
380
+ ## Credits
381
+
382
+ Built with tools from:
383
+ - [Astral](https://astral.sh/) - Ruff, ty, uv
384
+ - [Pants](https://www.pantsbuild.org/) - Build system
385
+ - [pytest](https://docs.pytest.org/) - Testing framework
@@ -0,0 +1,25 @@
1
+ pants_baseline/__about__.py,sha256=5A2jMkDInJhd3HAthalOD8OaqVZJBdl_bjVT0YZUhXc,98
2
+ pants_baseline/__init__.py,sha256=uVRGi1D2gFjc7emmeewWdcvpO-NsUuKsMbX3rztOxWU,655
3
+ pants_baseline/register.py,sha256=AnQrzGYcPY4f7jMvgDVvs9bo-oY1XgOAwEO3fo813yg,1656
4
+ pants_baseline/targets.py,sha256=G8ejj3QYaGHtLHbxirTyTjnEAWYxlpHFHYKV-_B4lMo,3300
5
+ pants_baseline/goals/__init__.py,sha256=pf6KU2CIQuDkx8ER3IS0H-kuNbBtX-AH5B5SnSP9_yw,192
6
+ pants_baseline/goals/audit.py,sha256=e2kOEdoHnNm3AlMGBq4F9ggr0K_lLQ1X1JsTi7ycMA8,2326
7
+ pants_baseline/goals/fmt.py,sha256=QNeQHBqR-wdLKE0oTkI3jtE3sFOmOp4EP0VXGkmG6Gg,1731
8
+ pants_baseline/goals/lint.py,sha256=hvIRPd-zfh5zC6Q_RvEWSbqJyszGEtvCpPdKwrTe0Vo,1867
9
+ pants_baseline/goals/test.py,sha256=cUSE7NyuXaEtZnBe22MqPAu-Fqjtn5oCpttmeU1XIk4,1590
10
+ pants_baseline/goals/typecheck.py,sha256=LuuOW3lvzOhgsNf5-W0SC1jvNnI5Nt4ZQAGwOPg6ZoA,1706
11
+ pants_baseline/rules/__init__.py,sha256=UpvDpGVImhRfp2_VeUNsRPGiWjBbMI6AV1-Yx3kS0Gg,252
12
+ pants_baseline/rules/audit_rules.py,sha256=vZr8VyExobFMWeV94yqpDA2KyWFNci3-0GYYvxGCfqE,3543
13
+ pants_baseline/rules/fmt_rules.py,sha256=cObaRCS-9sqtPUhIGBHt3vTd2oW7veHwQnmex0XLaB4,3495
14
+ pants_baseline/rules/lint_rules.py,sha256=TLc4OU1dGQF3ZtDfXtiA1B267FQXgPGxEjIZiyja84g,3825
15
+ pants_baseline/rules/test_rules.py,sha256=BkrFKdVqj47E8lHBqsMpSC8CteaycoYpdx2rN45VQ-E,4136
16
+ pants_baseline/rules/typecheck_rules.py,sha256=IBBmVbm21a4jXS3YjDL_rVmkN1W8LhDDlY3QMkDID6o,3969
17
+ pants_baseline/subsystems/__init__.py,sha256=LteH_qmUIgRAnXYmmi7f6o894QfpY3hMNH5dlvJbSoM,387
18
+ pants_baseline/subsystems/baseline.py,sha256=M20muLytoWZnA4ZY3lkbSsdCXt6OMPH6IMJfXULAQSo,2049
19
+ pants_baseline/subsystems/ruff.py,sha256=Yl5WB7InBRrr462aiowt6bZDPBiV6QJo5snrCcKds4E,2572
20
+ pants_baseline/subsystems/ty.py,sha256=boUryZIlJI8dm8jcBfhwmaDlhdC4sXSNTd3pg_NdZGY,2097
21
+ pants_baseline/subsystems/uv.py,sha256=Ws9KRZ5LVQA9FXEttMnNjw1fJrm9uE-urYo6zzePHXk,1822
22
+ jaymd96_pants_baseline-0.1.0.dist-info/METADATA,sha256=NBXKfnOCOKSmOqhhBjbHslijx0pIqQerhrL3eWI4tg8,7934
23
+ jaymd96_pants_baseline-0.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
24
+ jaymd96_pants_baseline-0.1.0.dist-info/licenses/LICENSE,sha256=oLGLZv7XKM_oKCbdMW1bZB37SXsdexmhNSuh3Xg4m4I,10754
25
+ jaymd96_pants_baseline-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 James
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,4 @@
1
+ """Version information for jaymd96-pants-baseline."""
2
+
3
+ __version__ = "0.1.0"
4
+ __author__ = "James"
@@ -0,0 +1,17 @@
1
+ """Pants Python Baseline Plugin.
2
+
3
+ An opinionated Python code quality baseline plugin for the Pants build system.
4
+ Integrates modern, high-performance tools from the Astral ecosystem:
5
+
6
+ - **Ruff**: Ultra-fast linting and formatting (replaces Black, isort, Flake8)
7
+ - **ty**: Next-generation type checker (10-60x faster than MyPy)
8
+ - **uv**: Fast dependency management and security auditing
9
+ - **pytest**: Industry-standard testing with coverage support
10
+
11
+ This plugin provides sensible defaults that enforce code quality standards
12
+ across Python projects with minimal configuration.
13
+ """
14
+
15
+ from pants_baseline.__about__ import __version__
16
+
17
+ __all__ = ["__version__"]
@@ -0,0 +1,11 @@
1
+ """Goals for the Python Baseline plugin."""
2
+
3
+ from pants_baseline.goals import audit, fmt, lint, test, typecheck
4
+
5
+ __all__ = [
6
+ "audit",
7
+ "fmt",
8
+ "lint",
9
+ "test",
10
+ "typecheck",
11
+ ]