lint-utils 0.2.1__tar.gz → 0.2.3__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.
- {lint_utils-0.2.1 → lint_utils-0.2.3}/PKG-INFO +12 -5
- {lint_utils-0.2.1 → lint_utils-0.2.3}/README.md +9 -2
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/visitors/base.py +8 -2
- {lint_utils-0.2.1 → lint_utils-0.2.3}/pyproject.toml +3 -3
- {lint_utils-0.2.1 → lint_utils-0.2.3}/.gitignore +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/LICENSE +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/__init__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/__main__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/_cli_commands/__init__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/_cli_commands/abc_.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/_cli_commands/check.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/_cli_commands/dto.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/_cli_commands/remind_later.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/common/__init__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/common/files.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/common/std.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/common/text_styling.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/common/timer.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/config.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/py.typed +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/regex.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/rules.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/tree_info.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/visitors/__init__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/visitors/dto.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/lint_utils/visitors/useless_fields.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.3}/tests/__init__.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: lint-utils
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.2.3
|
|
4
|
+
Summary: Deprecated linter package, superseded by unref
|
|
5
5
|
Project-URL: GitHub, https://github.com/barbarrista/lint-utils
|
|
6
6
|
Author-email: Nikitosio Noskovinni <nik.noskov08@gmail.com>
|
|
7
7
|
License: MIT
|
|
@@ -14,6 +14,10 @@ Description-Content-Type: text/markdown
|
|
|
14
14
|
|
|
15
15
|
# Lint Utils
|
|
16
16
|
|
|
17
|
+
> [!WARNING]
|
|
18
|
+
> **Deprecated.** This project is no longer maintained and the repository is archived.
|
|
19
|
+
> It has been superseded by [unref](https://github.com/Apakottur/unref) — an extremely fast Python unused code finder written in Rust.
|
|
20
|
+
|
|
17
21
|
The humble linter package
|
|
18
22
|
|
|
19
23
|
## Installation
|
|
@@ -88,13 +92,16 @@ USL001 = []
|
|
|
88
92
|
|
|
89
93
|
### exclude
|
|
90
94
|
|
|
91
|
-
|
|
95
|
+
Paths and glob patterns in the exclude list are ignored during checking. `*` matches across directories, so `tests/*` skips the whole `tests` tree.
|
|
92
96
|
|
|
93
97
|
```toml
|
|
94
98
|
...
|
|
95
99
|
|
|
96
100
|
[tool.lint-utils]
|
|
97
|
-
exclude = [
|
|
101
|
+
exclude = [
|
|
102
|
+
"tests/*",
|
|
103
|
+
"path/to/file.py",
|
|
104
|
+
]
|
|
98
105
|
```
|
|
99
106
|
|
|
100
107
|
### tool.lint-utils.exclude-base-classes
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Lint Utils
|
|
2
2
|
|
|
3
|
+
> [!WARNING]
|
|
4
|
+
> **Deprecated.** This project is no longer maintained and the repository is archived.
|
|
5
|
+
> It has been superseded by [unref](https://github.com/Apakottur/unref) — an extremely fast Python unused code finder written in Rust.
|
|
6
|
+
|
|
3
7
|
The humble linter package
|
|
4
8
|
|
|
5
9
|
## Installation
|
|
@@ -74,13 +78,16 @@ USL001 = []
|
|
|
74
78
|
|
|
75
79
|
### exclude
|
|
76
80
|
|
|
77
|
-
|
|
81
|
+
Paths and glob patterns in the exclude list are ignored during checking. `*` matches across directories, so `tests/*` skips the whole `tests` tree.
|
|
78
82
|
|
|
79
83
|
```toml
|
|
80
84
|
...
|
|
81
85
|
|
|
82
86
|
[tool.lint-utils]
|
|
83
|
-
exclude = [
|
|
87
|
+
exclude = [
|
|
88
|
+
"tests/*",
|
|
89
|
+
"path/to/file.py",
|
|
90
|
+
]
|
|
84
91
|
```
|
|
85
92
|
|
|
86
93
|
### tool.lint-utils.exclude-base-classes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ast
|
|
2
|
+
import fnmatch
|
|
2
3
|
from typing import ClassVar, Protocol
|
|
3
4
|
|
|
4
5
|
from lint_utils.config import LintUtilsConfig
|
|
@@ -18,5 +19,10 @@ class BaseVisitor(HasRuleProtocol, ast.NodeVisitor):
|
|
|
18
19
|
if self._config is None:
|
|
19
20
|
return False
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
if self.rule in self._config.lint.ignore:
|
|
23
|
+
return True
|
|
24
|
+
|
|
25
|
+
path = self._file_info.path.as_posix()
|
|
26
|
+
return any(
|
|
27
|
+
fnmatch.fnmatchcase(path, pattern) for pattern in self._config.exclude
|
|
28
|
+
)
|
|
@@ -7,12 +7,12 @@ dependencies = [
|
|
|
7
7
|
"msgspec>=0.19.0",
|
|
8
8
|
"toml>=0.10.2",
|
|
9
9
|
]
|
|
10
|
-
description = "
|
|
10
|
+
description = "Deprecated linter package, superseded by unref"
|
|
11
11
|
license = {text = "MIT"}
|
|
12
12
|
name = "lint-utils"
|
|
13
13
|
readme = "README.md"
|
|
14
14
|
requires-python = ">=3.11"
|
|
15
|
-
version = "0.2.
|
|
15
|
+
version = "0.2.3"
|
|
16
16
|
|
|
17
17
|
[project.urls]
|
|
18
18
|
"GitHub" = "https://github.com/barbarrista/lint-utils"
|
|
@@ -59,7 +59,7 @@ changelog_start_rev = "0.1.1"
|
|
|
59
59
|
name = "cz_conventional_commits"
|
|
60
60
|
tag_format = "$version"
|
|
61
61
|
update_changelog_on_bump = true
|
|
62
|
-
version = "0.2.
|
|
62
|
+
version = "0.2.3"
|
|
63
63
|
version_files = [
|
|
64
64
|
"pyproject.toml:version",
|
|
65
65
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|