Skip to content

Commit 5a6f22c

Browse files
authored
Small updates (#13)
* Rename deprecated config options * Update readme * Include full path to license for pypi * Update dev version handling * Add build task
1 parent ebb31ec commit 5a6f22c

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

.vscode/tasks.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Build package",
8+
"type": "shell",
9+
"command": "rm -rf build dist *.egg-info; source venv/bin/activate; python setup.py sdist bdist_wheel",
10+
"group": {
11+
"kind": "build",
12+
"isDefault": true,
13+
},
14+
},
15+
]
16+
}

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ It uses token analysis and
1212
to try and update the typing syntax the best it can.
1313

1414
**Important**
15-
Since every project uses a different formatting style,
16-
always check `git diff` before committing any changes!
15+
Every project uses a different formatting style,
16+
so always check `git diff` before comitting any changes!
1717
Since this tool uses [pyupgrade][pyu], it's best used for
1818
projects that use it already.
1919

@@ -119,7 +119,7 @@ Set the minimum Python syntax version to **3.10**. (Default: **3.8**)
119119

120120
## License
121121
This Project is licensed under the MIT license.
122-
See [LICENSE](LICENSE) for the full license text.
122+
See [LICENSE][LICENSE_FILE] for the full license text.
123123

124124

125125
[pri]: https://github.com/asottile/reorder_python_imports
@@ -129,3 +129,5 @@ See [LICENSE](LICENSE) for the full license text.
129129
[black]: https://github.com/psf/black
130130
[PEP585]: https://www.python.org/dev/peps/pep-0585/
131131
[PEP604]: https://www.python.org/dev/peps/pep-0604/
132+
133+
[LICENSE_FILE]: https://github.com/cdce8p/python-typing-update/blob/main/LICENSE

python_typing_update/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
from typing import NamedTuple
88

99
version = (0, 3, 1)
10-
dev_version = 1
10+
dev_version = 1 # Set to `None` for release
1111

1212
version_str = '.'.join(map(str, version))
1313
if dev_version is not None:
14-
version_str += f'-dev{dev_version}'
14+
version_str += f'.dev{dev_version}'
1515

1616

1717
class FileAttributes(NamedTuple):

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ classifier =
2121
ignore = E203,E231,E701,W503,W504
2222
# E203,E231,E701 -> walrus
2323
# W503/504 -> line-break-before/after-binary-operator
24-
max-line-length = 119
25-
extend-exclude =
24+
max_line_length = 119
25+
extend_exclude =
2626
.github,
2727
.vscode,
2828
tests/fixtures,

0 commit comments

Comments
 (0)