python-linters 0.1.0__tar.gz → 0.1.1__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.
- {python_linters-0.1.0 → python_linters-0.1.1}/PKG-INFO +6 -4
- {python_linters-0.1.0 → python_linters-0.1.1}/README.md +3 -3
- {python_linters-0.1.0 → python_linters-0.1.1}/pyproject.toml +3 -1
- {python_linters-0.1.0 → python_linters-0.1.1}/python_linters/run_linters.py +3 -3
- {python_linters-0.1.0 → python_linters-0.1.1}/python_linters/.flake8 +0 -0
- {python_linters-0.1.0 → python_linters-0.1.1}/python_linters/__init__.py +0 -0
- {python_linters-0.1.0 → python_linters-0.1.1}/python_linters/add_noqa.py +0 -0
- {python_linters-0.1.0 → python_linters-0.1.1}/python_linters/fix_code.py +0 -0
- {python_linters-0.1.0 → python_linters-0.1.1}/python_linters/parse_rules.py +0 -0
- {python_linters-0.1.0 → python_linters-0.1.1}/python_linters/ruff.toml +0 -0
- {python_linters-0.1.0 → python_linters-0.1.1}/python_linters/ruff_rule_categories.py +0 -0
- {python_linters-0.1.0 → python_linters-0.1.1}/python_linters/ruff_rules.txt +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-linters
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: bundling config files for linters like ruff and flake8
|
|
5
|
+
Home-page: https://github.com/dertilo/python-linters
|
|
5
6
|
Author: Tilo Himmelsbach
|
|
6
7
|
Author-email: dertilo@gmail.com
|
|
7
8
|
Requires-Python: >=3.10,<4.0
|
|
@@ -15,9 +16,10 @@ Requires-Dist: flake8-newspaper-style (>=0.4.3,<0.5.0)
|
|
|
15
16
|
Requires-Dist: ruff (>=0.0.291)
|
|
16
17
|
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
|
17
18
|
Requires-Dist: wemake-python-styleguide (>=0.18.0,<0.19.0)
|
|
19
|
+
Project-URL: Repository, https://github.com/dertilo/python-linters
|
|
18
20
|
Description-Content-Type: text/markdown
|
|
19
21
|
|
|
20
|
-
# python-
|
|
22
|
+
# python-linters
|
|
21
23
|
- bundles flake8, black, isort, ruff into a single poetry-script
|
|
22
24
|
- project independent linter configuration (via `ruff.toml`,`.flake8`) -> one config to rule them all
|
|
23
25
|
### use-cases:
|
|
@@ -38,9 +40,9 @@ python-linters = { version = "<some-version-here>" }
|
|
|
38
40
|
{ include = "my_package_name" },
|
|
39
41
|
]
|
|
40
42
|
```
|
|
41
|
-
b. or via `tool.python-
|
|
43
|
+
b. or via `tool.python-linters`
|
|
42
44
|
```toml
|
|
43
|
-
[tool.python-
|
|
45
|
+
[tool.python-linters]
|
|
44
46
|
folders_to_be_linted=["my_directory","another_dir/my_sub_package"]
|
|
45
47
|
```
|
|
46
48
|
## 2. local development workflow (before pushing to ci-pipeline)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# python-
|
|
1
|
+
# python-linters
|
|
2
2
|
- bundles flake8, black, isort, ruff into a single poetry-script
|
|
3
3
|
- project independent linter configuration (via `ruff.toml`,`.flake8`) -> one config to rule them all
|
|
4
4
|
### use-cases:
|
|
@@ -19,9 +19,9 @@ python-linters = { version = "<some-version-here>" }
|
|
|
19
19
|
{ include = "my_package_name" },
|
|
20
20
|
]
|
|
21
21
|
```
|
|
22
|
-
b. or via `tool.python-
|
|
22
|
+
b. or via `tool.python-linters`
|
|
23
23
|
```toml
|
|
24
|
-
[tool.python-
|
|
24
|
+
[tool.python-linters]
|
|
25
25
|
folders_to_be_linted=["my_directory","another_dir/my_sub_package"]
|
|
26
26
|
```
|
|
27
27
|
## 2. local development workflow (before pushing to ci-pipeline)
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "python-linters"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.1"
|
|
4
4
|
description = "bundling config files for linters like ruff and flake8"
|
|
5
5
|
authors = ["Tilo Himmelsbach <dertilo@gmail.com>"]
|
|
6
6
|
readme = "README.md"
|
|
7
|
+
homepage = "https://github.com/dertilo/python-linters"
|
|
8
|
+
repository = "https://github.com/dertilo/python-linters"
|
|
7
9
|
packages = [{ include = "python_linters" }]
|
|
8
10
|
|
|
9
11
|
include=["python_linters/.flake8","python_linters/ruff.toml"]
|
|
@@ -40,9 +40,9 @@ packages = [
|
|
|
40
40
|
{ include = \"my_package_name\" },
|
|
41
41
|
]
|
|
42
42
|
|
|
43
|
-
b. or via tool.python-
|
|
43
|
+
b. or via tool.python-linters
|
|
44
44
|
|
|
45
|
-
[tool.python-
|
|
45
|
+
[tool.python-linters]
|
|
46
46
|
folders_to_be_linted=["my_directory","another_dir/my_sub_package"]"""
|
|
47
47
|
super().__init__(msg)
|
|
48
48
|
|
|
@@ -56,7 +56,7 @@ def get_folders_to_be_linted(pyproject_toml: str) -> list[str]:
|
|
|
56
56
|
with open(pyproject_toml) as f:
|
|
57
57
|
t = toml.load(f)
|
|
58
58
|
folders = (
|
|
59
|
-
t.get("tool", {}).get("python-
|
|
59
|
+
t.get("tool", {}).get("python-linters", {}).get("folders_to_be_linted", None)
|
|
60
60
|
)
|
|
61
61
|
if (
|
|
62
62
|
folders is None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|