Skip to content

Commit 08d3ec1

Browse files
authored
Add typing to Stacky (#15)
Summary As indicated in the title, the idea is to have things more strongly typed so that we can run mypy on diff to ensure that we have less risk of regressing. Testing Ran: ``` mypy src ```
1 parent 567a9c5 commit 08d3ec1

File tree

4 files changed

+470
-387
lines changed

4 files changed

+470
-387
lines changed

pyproject.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tool.black]
2+
line-length = 120
3+
target-version = ['py310']
4+
include = '\.pyi?$'
5+
6+
[tool.isort]
7+
profile = "black"
8+
line_length = 120

setup.py

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
1-
from setuptools import setup, find_packages
21
import pathlib
32

3+
from setuptools import find_packages, setup
4+
45
here = pathlib.Path(__file__).parent.resolve()
56

67
# Get the long description from the README file
78
long_description = (here / "README.md").read_text(encoding="utf-8")
89

910
setup(
10-
name="rockset-stacky",
11-
version="1.0.10",
11+
name="rockset-stacky",
12+
version="1.0.11",
1213
description="""
1314
stacky is a tool to manage stacks of PRs. This allows developers to easily
1415
manage many smaller, more targeted PRs that depend on each other.
15-
""",
16-
long_description=long_description,
17-
long_description_content_type="text/markdown",
18-
url="https://github.com/rockset/stacky",
19-
author="Rockset",
20-
author_email="[email protected]",
16+
""",
17+
long_description=long_description,
18+
long_description_content_type="text/markdown",
19+
url="https://github.com/rockset/stacky",
20+
author="Rockset",
21+
author_email="[email protected]",
2122
keywords="github, stack, pr, pull request",
22-
package_dir={"": "src"},
23+
package_dir={"": "src"},
2324
packages=find_packages(where="src"),
2425
python_requires=">=3.8, <4",
25-
install_requires=["asciitree", "ansicolors", "simple-term-menu"],
26+
install_requires=["asciitree", "ansicolors", "simple-term-menu"],
2627
entry_points={
2728
"console_scripts": [
2829
"stacky=stacky:main",
@@ -32,4 +33,4 @@
3233
"Bug Reports": "https://github.com/rockset/stacky/issues",
3334
"Source": "https://github.com/rockset/stacky",
3435
},
35-
)
36+
)

0 commit comments

Comments
 (0)