lint-utils 0.2.1__tar.gz → 0.2.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.
- {lint_utils-0.2.1 → lint_utils-0.2.2}/PKG-INFO +7 -4
- {lint_utils-0.2.1 → lint_utils-0.2.2}/README.md +5 -2
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/visitors/base.py +8 -2
- {lint_utils-0.2.1 → lint_utils-0.2.2}/pyproject.toml +2 -2
- {lint_utils-0.2.1 → lint_utils-0.2.2}/.gitignore +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/LICENSE +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/__init__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/__main__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/_cli_commands/__init__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/_cli_commands/abc_.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/_cli_commands/check.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/_cli_commands/dto.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/_cli_commands/remind_later.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/common/__init__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/common/files.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/common/std.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/common/text_styling.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/common/timer.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/config.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/py.typed +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/regex.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/rules.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/tree_info.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/visitors/__init__.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/visitors/dto.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/lint_utils/visitors/useless_fields.py +0 -0
- {lint_utils-0.2.1 → lint_utils-0.2.2}/tests/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: lint-utils
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: The humble linter package
|
|
5
5
|
Project-URL: GitHub, https://github.com/barbarrista/lint-utils
|
|
6
6
|
Author-email: Nikitosio Noskovinni <nik.noskov08@gmail.com>
|
|
@@ -88,13 +88,16 @@ USL001 = []
|
|
|
88
88
|
|
|
89
89
|
### exclude
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
Paths and glob patterns in the exclude list are ignored during checking. `*` matches across directories, so `tests/*` skips the whole `tests` tree.
|
|
92
92
|
|
|
93
93
|
```toml
|
|
94
94
|
...
|
|
95
95
|
|
|
96
96
|
[tool.lint-utils]
|
|
97
|
-
exclude = [
|
|
97
|
+
exclude = [
|
|
98
|
+
"tests/*",
|
|
99
|
+
"path/to/file.py",
|
|
100
|
+
]
|
|
98
101
|
```
|
|
99
102
|
|
|
100
103
|
### tool.lint-utils.exclude-base-classes
|
|
@@ -74,13 +74,16 @@ USL001 = []
|
|
|
74
74
|
|
|
75
75
|
### exclude
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
Paths and glob patterns in the exclude list are ignored during checking. `*` matches across directories, so `tests/*` skips the whole `tests` tree.
|
|
78
78
|
|
|
79
79
|
```toml
|
|
80
80
|
...
|
|
81
81
|
|
|
82
82
|
[tool.lint-utils]
|
|
83
|
-
exclude = [
|
|
83
|
+
exclude = [
|
|
84
|
+
"tests/*",
|
|
85
|
+
"path/to/file.py",
|
|
86
|
+
]
|
|
84
87
|
```
|
|
85
88
|
|
|
86
89
|
### 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
|
+
)
|
|
@@ -12,7 +12,7 @@ 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.2"
|
|
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.2"
|
|
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
|