colint 0.1.0__py3-none-win_amd64.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.
|
Binary file
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: colint
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Classifier: Development Status :: 3 - Alpha
|
|
5
|
+
Classifier: Environment :: Console
|
|
6
|
+
Classifier: Intended Audience :: Developers
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Rust
|
|
10
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Summary: Opinionated static analysis for Python
|
|
13
|
+
Keywords: lint,linter,python,static-analysis
|
|
14
|
+
Home-Page: https://pypi.org/project/colint/
|
|
15
|
+
Author-email: Colin Kennedy <colinvfx@gmail.com>
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
18
|
+
|
|
19
|
+
# colint
|
|
20
|
+
|
|
21
|
+
`colint` is an MIT-licensed Rust command-line linter for opinionated Python
|
|
22
|
+
code reviews. It parses Python with Tree-sitter, so diagnostics include stable
|
|
23
|
+
source locations even for multiline expressions.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
Once published, install the `ColinKennedy` PyPI distribution with:
|
|
28
|
+
|
|
29
|
+
```powershell
|
|
30
|
+
python -m pip install colint
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```powershell
|
|
34
|
+
cargo run -- path\to\project
|
|
35
|
+
cargo run -- --strict --json src
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Contributors can run the same quality gates as CI with `cargo fmt --check`,
|
|
39
|
+
`cargo clippy --all-targets -- -D warnings`, and `cargo test --all-targets`.
|
|
40
|
+
|
|
41
|
+
Rules have stable codes in the `COL-NNN` form. A line may suppress all findings
|
|
42
|
+
with `# noqa`, or selected findings with `# colint: ignore[COL-003,COL-010]`.
|
|
43
|
+
The complete agreed rule and behavior contract is in [DESIGN.md](DESIGN.md).
|
|
44
|
+
|
|
45
|
+
## Configuration
|
|
46
|
+
|
|
47
|
+
Create `.colint.toml` in the working directory (or a parent directory):
|
|
48
|
+
|
|
49
|
+
```toml
|
|
50
|
+
warnings_as_errors = false
|
|
51
|
+
docstring_convention = "mkdocs"
|
|
52
|
+
|
|
53
|
+
[rules]
|
|
54
|
+
COL-003 = true
|
|
55
|
+
COL-013 = false
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Every rule is enabled by default. `--strict` enables every rule regardless of
|
|
59
|
+
configuration and treats warnings as errors. Exit status is `0` for clean runs
|
|
60
|
+
and ordinary warnings, `1` for warnings escalated to errors, and `2` whenever
|
|
61
|
+
an error-level finding exists.
|
|
62
|
+
|
|
63
|
+
`docstring_convention = "mkdocs"` enables the MkDocs parameter-markup check.
|
|
64
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
colint-0.1.0.data/scripts/colint.exe,sha256=zl1prccD99tkdCtl4k6fXrGKFq2CpKD0TWI1l0-uPRQ,1653760
|
|
2
|
+
colint-0.1.0.dist-info/METADATA,sha256=WCCCwhGE1L8pvl7iV3aGuTjJrN3rmozJHcLfSOY-Cpw,2084
|
|
3
|
+
colint-0.1.0.dist-info/WHEEL,sha256=8Aej0W0a6Cz6apA3IzJrTnxLRVLAt-w0Oh8SA3Con_c,94
|
|
4
|
+
colint-0.1.0.dist-info/licenses/LICENSE,sha256=bfOoy_5JRLuVQTlN8inH8y6XfHQ3YSLUwzwW0uvXC2g,1097
|
|
5
|
+
colint-0.1.0.dist-info/sboms/colint.cyclonedx.json,sha256=bpPrRxaDAt69QMLDs3wCZEJHpPz_ZSPPVk45E8X-k8o,57857
|
|
6
|
+
colint-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 colint contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|