whitespace-format 0.0.5__tar.gz → 0.0.6__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.
- {whitespace_format-0.0.5 → whitespace_format-0.0.6}/PKG-INFO +9 -7
- {whitespace_format-0.0.5 → whitespace_format-0.0.6}/README.md +6 -5
- {whitespace_format-0.0.5 → whitespace_format-0.0.6}/pyproject.toml +8 -8
- whitespace_format-0.0.6/whitespace_format.py +839 -0
- whitespace_format-0.0.5/whitespace_format.py +0 -753
- {whitespace_format-0.0.5 → whitespace_format-0.0.6}/LICENSE +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: whitespace-format
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.6
|
4
4
|
Summary: Linter and formatter for source code files and text files
|
5
5
|
Home-page: https://github.com/DavidPal/whitespace-format
|
6
6
|
License: MIT
|
7
7
|
Author: David Pal
|
8
8
|
Author-email: davidko.pal@gmail.com
|
9
|
-
Requires-Python: >=3.
|
9
|
+
Requires-Python: >=3.8.0,<4.0.0
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
11
11
|
Classifier: Programming Language :: Python
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
18
19
|
Project-URL: Repository, https://github.com/DavidPal/whitespace-format
|
19
20
|
Description-Content-Type: text/markdown
|
20
21
|
|
@@ -50,7 +51,7 @@ second time (with the same parameters) has no effect.
|
|
50
51
|
pip install whitespace-format
|
51
52
|
```
|
52
53
|
|
53
|
-
Installation requires Python 3.
|
54
|
+
Installation requires Python 3.8.0 or higher.
|
54
55
|
|
55
56
|
## Usage
|
56
57
|
|
@@ -95,14 +96,15 @@ The regular expression is evaluated on the path of each file.
|
|
95
96
|
|
96
97
|
* `--add-new-line-marker-at-end-of-file` -- Add missing new line marker at end of each file.
|
97
98
|
* `--remove-new-line-marker-from-end-of-file` -- Remove all new line marker(s) from the end of each file.
|
98
|
-
This option
|
99
|
-
Empty lines at the end of the file are removed.
|
99
|
+
This option cannot be used in combination with `--add-new-line-marker-at-end-of-file`.
|
100
|
+
Empty lines at the end of the file are removed, i.e., this option implies `--remove-trailing-empty-lines`
|
101
|
+
option.
|
100
102
|
* `--normalize-new-line-markers` -- Make new line markers consistent in each file
|
101
103
|
by replacing `\r\n`, `\n`, and `\r` with a consistent new line marker.
|
102
104
|
* `--remove-trailing-whitespace` -- Remove whitespace at the end of each line.
|
103
105
|
* `--remove-trailing-empty-lines` -- Remove empty lines at the end of each file.
|
104
|
-
* `--new-line-marker=MARKER` -- This option specifies what new line marker to
|
105
|
-
`MARKER` must be one of the following:
|
106
|
+
* `--new-line-marker=MARKER` -- This option specifies what new line marker to when
|
107
|
+
adding or replacing new line markers. `MARKER` must be one of the following:
|
106
108
|
* `auto` -- Use new line marker that is the most common in each individual file.
|
107
109
|
If no new line marker is present in the file, Linux `\n` is used.
|
108
110
|
This is the default option.
|
@@ -30,7 +30,7 @@ second time (with the same parameters) has no effect.
|
|
30
30
|
pip install whitespace-format
|
31
31
|
```
|
32
32
|
|
33
|
-
Installation requires Python 3.
|
33
|
+
Installation requires Python 3.8.0 or higher.
|
34
34
|
|
35
35
|
## Usage
|
36
36
|
|
@@ -75,14 +75,15 @@ The regular expression is evaluated on the path of each file.
|
|
75
75
|
|
76
76
|
* `--add-new-line-marker-at-end-of-file` -- Add missing new line marker at end of each file.
|
77
77
|
* `--remove-new-line-marker-from-end-of-file` -- Remove all new line marker(s) from the end of each file.
|
78
|
-
This option
|
79
|
-
Empty lines at the end of the file are removed.
|
78
|
+
This option cannot be used in combination with `--add-new-line-marker-at-end-of-file`.
|
79
|
+
Empty lines at the end of the file are removed, i.e., this option implies `--remove-trailing-empty-lines`
|
80
|
+
option.
|
80
81
|
* `--normalize-new-line-markers` -- Make new line markers consistent in each file
|
81
82
|
by replacing `\r\n`, `\n`, and `\r` with a consistent new line marker.
|
82
83
|
* `--remove-trailing-whitespace` -- Remove whitespace at the end of each line.
|
83
84
|
* `--remove-trailing-empty-lines` -- Remove empty lines at the end of each file.
|
84
|
-
* `--new-line-marker=MARKER` -- This option specifies what new line marker to
|
85
|
-
`MARKER` must be one of the following:
|
85
|
+
* `--new-line-marker=MARKER` -- This option specifies what new line marker to when
|
86
|
+
adding or replacing new line markers. `MARKER` must be one of the following:
|
86
87
|
* `auto` -- Use new line marker that is the most common in each individual file.
|
87
88
|
If no new line marker is present in the file, Linux `\n` is used.
|
88
89
|
This is the default option.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "whitespace-format"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.6"
|
4
4
|
description = "Linter and formatter for source code files and text files"
|
5
5
|
license = "MIT"
|
6
6
|
authors = ["David Pal <davidko.pal@gmail.com>"]
|
@@ -17,18 +17,18 @@ classifiers = [
|
|
17
17
|
whitespace-format = "whitespace_format:main"
|
18
18
|
|
19
19
|
[tool.poetry.dependencies]
|
20
|
-
python = "^3.
|
20
|
+
python = "^3.8.0"
|
21
21
|
|
22
22
|
[tool.poetry.dev-dependencies]
|
23
|
-
black = "^23.
|
23
|
+
black = "^23.12.1"
|
24
24
|
coverage = "^7.2.4"
|
25
25
|
flake8 = "^5.0.4"
|
26
|
-
flake8-absolute-import = "^1.0.0.
|
27
|
-
isort = {extras = ["colors"], version = "^5.
|
28
|
-
mypy = "^1.
|
26
|
+
flake8-absolute-import = "^1.0.0.2"
|
27
|
+
isort = {extras = ["colors"], version = "^5.13.2"}
|
28
|
+
mypy = "^1.13.0"
|
29
29
|
pydocstyle = {extras = ["toml"], version = "^6.3.0"}
|
30
|
-
pytest = "^
|
31
|
-
pylint = "^2.17.
|
30
|
+
pytest = "^8.3.4"
|
31
|
+
pylint = "^2.17.7"
|
32
32
|
pylint-quotes = "^0.2.3"
|
33
33
|
|
34
34
|
[build-system]
|