xdlint 0.1.0__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.
xdlint-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 century-arcade
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.
xdlint-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,83 @@
1
+ Metadata-Version: 2.4
2
+ Name: xdlint
3
+ Version: 0.1.0
4
+ Summary: Validator and fixer for the .xd crossword puzzle format
5
+ Author-email: Saul Pwanson <xd@saul.pw>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/century-arcade/xd
8
+ Project-URL: Source, https://github.com/century-arcade/xd/blob/master/xdlint.py
9
+ Project-URL: Specification, https://github.com/century-arcade/xdformat
10
+ Project-URL: Issues, https://github.com/century-arcade/xd/issues
11
+ Keywords: crossword,puzzles,xd,lint,validator
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Topic :: Games/Entertainment :: Puzzle Games
19
+ Classifier: Topic :: Software Development :: Quality Assurance
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Dynamic: license-file
24
+
25
+ # xdlint
26
+
27
+ `xdlint` is the validator for the [.xd crossword format](https://github.com/century-arcade/xdformat).
28
+ It checks `.xd` files against the spec, plus a set of structural and quality
29
+ rules that come from fixes made again and again in the
30
+ [xd corpus](https://github.com/century-arcade/xd). Many findings have a
31
+ mechanical fix that `xdlint --fix` can apply.
32
+
33
+ It is a single module that uses only the standard library, with no dependencies.
34
+ Python 3.10 or newer.
35
+
36
+ ## Install
37
+
38
+ pip install xdlint
39
+
40
+ ## Usage
41
+
42
+ xdlint path [path ...] # lint .xd files, or directories (recursive)
43
+ xdlint --fix path ... # apply mechanical fixes in place
44
+ xdlint --fix --diff path ... # show the fixes as a unified diff, change nothing
45
+ xdlint --base BASE [--head HEAD] # lint only the .xd files changed in a git diff
46
+ xdlint --list-rules # print the rule catalog
47
+ xdlint --version
48
+
49
+ `--max-severity {error,warning,info,debug}` (default `warning`) sets which
50
+ findings are printed, and xdlint exits 1 if any finding is at or above that
51
+ level. `--disable XD###,...` and `--enable-only XD###,...` select rules.
52
+ `--no-experimental` skips rules that interpret extensions the spec doesn't
53
+ cover yet. `--profile gxd` adds the editorial conventions of the gxd corpus.
54
+ Run `xdlint --help` for every option.
55
+
56
+ The .xd format is specified at
57
+ [century-arcade/xdformat](https://github.com/century-arcade/xdformat).
58
+ The `xdformat` package there is the parser; xdlint is the separate linter.
59
+
60
+ ## Building and releasing
61
+
62
+ The source is `xdlint.py` at the root of the
63
+ [xd repository](https://github.com/century-arcade/xd); this directory only
64
+ packages it. The version is `__version__` in `xdlint.py`.
65
+
66
+ To build locally, from the repo root:
67
+
68
+ cp xdlint.py LICENSE packaging/xdlint/
69
+ python -m build packaging/xdlint
70
+ twine check --strict packaging/xdlint/dist/*
71
+
72
+ To release version X.Y.Z:
73
+
74
+ 1. Set `__version__ = "X.Y.Z"` in `xdlint.py` and merge that to master.
75
+ 2. Tag that commit and push the tag:
76
+
77
+ git tag xdlint-vX.Y.Z <commit>
78
+ git push origin xdlint-vX.Y.Z
79
+
80
+ The `release-xdlint` workflow (`.github/workflows/release-xdlint.yml`) checks
81
+ that the tag matches `__version__` and is on master, builds the sdist and wheel,
82
+ runs the tests against the built wheel, uploads to PyPI with trusted publishing,
83
+ and creates a GitHub release with the files attached.
xdlint-0.1.0/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # xdlint
2
+
3
+ `xdlint` is the validator for the [.xd crossword format](https://github.com/century-arcade/xdformat).
4
+ It checks `.xd` files against the spec, plus a set of structural and quality
5
+ rules that come from fixes made again and again in the
6
+ [xd corpus](https://github.com/century-arcade/xd). Many findings have a
7
+ mechanical fix that `xdlint --fix` can apply.
8
+
9
+ It is a single module that uses only the standard library, with no dependencies.
10
+ Python 3.10 or newer.
11
+
12
+ ## Install
13
+
14
+ pip install xdlint
15
+
16
+ ## Usage
17
+
18
+ xdlint path [path ...] # lint .xd files, or directories (recursive)
19
+ xdlint --fix path ... # apply mechanical fixes in place
20
+ xdlint --fix --diff path ... # show the fixes as a unified diff, change nothing
21
+ xdlint --base BASE [--head HEAD] # lint only the .xd files changed in a git diff
22
+ xdlint --list-rules # print the rule catalog
23
+ xdlint --version
24
+
25
+ `--max-severity {error,warning,info,debug}` (default `warning`) sets which
26
+ findings are printed, and xdlint exits 1 if any finding is at or above that
27
+ level. `--disable XD###,...` and `--enable-only XD###,...` select rules.
28
+ `--no-experimental` skips rules that interpret extensions the spec doesn't
29
+ cover yet. `--profile gxd` adds the editorial conventions of the gxd corpus.
30
+ Run `xdlint --help` for every option.
31
+
32
+ The .xd format is specified at
33
+ [century-arcade/xdformat](https://github.com/century-arcade/xdformat).
34
+ The `xdformat` package there is the parser; xdlint is the separate linter.
35
+
36
+ ## Building and releasing
37
+
38
+ The source is `xdlint.py` at the root of the
39
+ [xd repository](https://github.com/century-arcade/xd); this directory only
40
+ packages it. The version is `__version__` in `xdlint.py`.
41
+
42
+ To build locally, from the repo root:
43
+
44
+ cp xdlint.py LICENSE packaging/xdlint/
45
+ python -m build packaging/xdlint
46
+ twine check --strict packaging/xdlint/dist/*
47
+
48
+ To release version X.Y.Z:
49
+
50
+ 1. Set `__version__ = "X.Y.Z"` in `xdlint.py` and merge that to master.
51
+ 2. Tag that commit and push the tag:
52
+
53
+ git tag xdlint-vX.Y.Z <commit>
54
+ git push origin xdlint-vX.Y.Z
55
+
56
+ The `release-xdlint` workflow (`.github/workflows/release-xdlint.yml`) checks
57
+ that the tag matches `__version__` and is on master, builds the sdist and wheel,
58
+ runs the tests against the built wheel, uploads to PyPI with trusted publishing,
59
+ and creates a GitHub release with the files attached.
@@ -0,0 +1,48 @@
1
+ # Packaging for the `xdlint` PyPI distribution: just the root xdlint.py,
2
+ # as a single module with an `xdlint` console script. It is separate from
3
+ # the root pyproject.toml (the `xdfile` corpus toolset), which it leaves alone.
4
+ #
5
+ # xdlint.py and LICENSE live at the repo root; copy them here before building
6
+ # (see README.md, "Building and releasing"). The copies are gitignored.
7
+
8
+ [build-system]
9
+ requires = ["setuptools>=77"]
10
+ build-backend = "setuptools.build_meta"
11
+
12
+ [project]
13
+ name = "xdlint"
14
+ dynamic = ["version"]
15
+ description = "Validator and fixer for the .xd crossword puzzle format"
16
+ readme = "README.md"
17
+ license = "MIT"
18
+ license-files = ["LICENSE"]
19
+ requires-python = ">=3.10"
20
+ authors = [
21
+ { name = "Saul Pwanson", email = "xd@saul.pw" },
22
+ ]
23
+ keywords = ["crossword", "puzzles", "xd", "lint", "validator"]
24
+ classifiers = [
25
+ "Development Status :: 3 - Alpha",
26
+ "Environment :: Console",
27
+ "Intended Audience :: Developers",
28
+ "Operating System :: OS Independent",
29
+ "Programming Language :: Python :: 3",
30
+ "Programming Language :: Python :: 3 :: Only",
31
+ "Topic :: Games/Entertainment :: Puzzle Games",
32
+ "Topic :: Software Development :: Quality Assurance",
33
+ ]
34
+
35
+ [project.urls]
36
+ Homepage = "https://github.com/century-arcade/xd"
37
+ Source = "https://github.com/century-arcade/xd/blob/master/xdlint.py"
38
+ Specification = "https://github.com/century-arcade/xdformat"
39
+ Issues = "https://github.com/century-arcade/xd/issues"
40
+
41
+ [project.scripts]
42
+ xdlint = "xdlint:main"
43
+
44
+ [tool.setuptools]
45
+ py-modules = ["xdlint"]
46
+
47
+ [tool.setuptools.dynamic]
48
+ version = { attr = "xdlint.__version__" }
xdlint-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,83 @@
1
+ Metadata-Version: 2.4
2
+ Name: xdlint
3
+ Version: 0.1.0
4
+ Summary: Validator and fixer for the .xd crossword puzzle format
5
+ Author-email: Saul Pwanson <xd@saul.pw>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/century-arcade/xd
8
+ Project-URL: Source, https://github.com/century-arcade/xd/blob/master/xdlint.py
9
+ Project-URL: Specification, https://github.com/century-arcade/xdformat
10
+ Project-URL: Issues, https://github.com/century-arcade/xd/issues
11
+ Keywords: crossword,puzzles,xd,lint,validator
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Topic :: Games/Entertainment :: Puzzle Games
19
+ Classifier: Topic :: Software Development :: Quality Assurance
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Dynamic: license-file
24
+
25
+ # xdlint
26
+
27
+ `xdlint` is the validator for the [.xd crossword format](https://github.com/century-arcade/xdformat).
28
+ It checks `.xd` files against the spec, plus a set of structural and quality
29
+ rules that come from fixes made again and again in the
30
+ [xd corpus](https://github.com/century-arcade/xd). Many findings have a
31
+ mechanical fix that `xdlint --fix` can apply.
32
+
33
+ It is a single module that uses only the standard library, with no dependencies.
34
+ Python 3.10 or newer.
35
+
36
+ ## Install
37
+
38
+ pip install xdlint
39
+
40
+ ## Usage
41
+
42
+ xdlint path [path ...] # lint .xd files, or directories (recursive)
43
+ xdlint --fix path ... # apply mechanical fixes in place
44
+ xdlint --fix --diff path ... # show the fixes as a unified diff, change nothing
45
+ xdlint --base BASE [--head HEAD] # lint only the .xd files changed in a git diff
46
+ xdlint --list-rules # print the rule catalog
47
+ xdlint --version
48
+
49
+ `--max-severity {error,warning,info,debug}` (default `warning`) sets which
50
+ findings are printed, and xdlint exits 1 if any finding is at or above that
51
+ level. `--disable XD###,...` and `--enable-only XD###,...` select rules.
52
+ `--no-experimental` skips rules that interpret extensions the spec doesn't
53
+ cover yet. `--profile gxd` adds the editorial conventions of the gxd corpus.
54
+ Run `xdlint --help` for every option.
55
+
56
+ The .xd format is specified at
57
+ [century-arcade/xdformat](https://github.com/century-arcade/xdformat).
58
+ The `xdformat` package there is the parser; xdlint is the separate linter.
59
+
60
+ ## Building and releasing
61
+
62
+ The source is `xdlint.py` at the root of the
63
+ [xd repository](https://github.com/century-arcade/xd); this directory only
64
+ packages it. The version is `__version__` in `xdlint.py`.
65
+
66
+ To build locally, from the repo root:
67
+
68
+ cp xdlint.py LICENSE packaging/xdlint/
69
+ python -m build packaging/xdlint
70
+ twine check --strict packaging/xdlint/dist/*
71
+
72
+ To release version X.Y.Z:
73
+
74
+ 1. Set `__version__ = "X.Y.Z"` in `xdlint.py` and merge that to master.
75
+ 2. Tag that commit and push the tag:
76
+
77
+ git tag xdlint-vX.Y.Z <commit>
78
+ git push origin xdlint-vX.Y.Z
79
+
80
+ The `release-xdlint` workflow (`.github/workflows/release-xdlint.yml`) checks
81
+ that the tag matches `__version__` and is on master, builds the sdist and wheel,
82
+ runs the tests against the built wheel, uploads to PyPI with trusted publishing,
83
+ and creates a GitHub release with the files attached.
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ xdlint.py
5
+ xdlint.egg-info/PKG-INFO
6
+ xdlint.egg-info/SOURCES.txt
7
+ xdlint.egg-info/dependency_links.txt
8
+ xdlint.egg-info/entry_points.txt
9
+ xdlint.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ xdlint = xdlint:main
@@ -0,0 +1 @@
1
+ xdlint