-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add mypy type checking * chore: add setuptools-scm for version management from git * fix: wrong coverage plugin * refactor: fix up deps * chore: add pre-commit hook
- Loading branch information
Showing
6 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,3 +127,6 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# setuptools-scm | ||
version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.1.0 | ||
hooks: | ||
- id: check-yaml | ||
|
||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v2.2.0 | ||
hooks: | ||
- id: seed-isort-config | ||
|
||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v5.8.0 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 20.8b0 | ||
hooks: | ||
- id: black | ||
name: black | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.3 | ||
hooks: | ||
- id: flake8 | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.800 | ||
hooks: | ||
- id: mypy | ||
|
||
|
||
default_language_version: | ||
python: python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
"test": [ | ||
"pytest==5.4.1", | ||
"pytest-xdist", | ||
"pytest-coverage", | ||
"pytest-cov", | ||
"PyGithub>=1.54,<2.0", | ||
"hypothesis<6.0", | ||
"hypothesis-jsonschema==0.19.0", | ||
|
@@ -17,17 +17,23 @@ | |
"flake8==3.8.4", | ||
"isort>=5.7.0,<6", | ||
"mypy==0.790", | ||
"pydocstyle>=5.1.1,<6", | ||
], | ||
"doc": ["Sphinx>=3.4.3,<4", "sphinx_rtd_theme>=0.5.1"], | ||
"dev": ["pytest-watch>=4.2.0,<5", "wheel", "twine", "ipython"], | ||
"release": [ | ||
"setuptools", | ||
"setuptools-scm", | ||
"wheel", | ||
"twine", | ||
], | ||
"dev": ["pytest-watch", "IPython", "ipdb"], | ||
} | ||
|
||
extras_require["dev"] = ( | ||
extras_require["dev"] | ||
+ extras_require["test"] # noqa: W504 | ||
+ extras_require["lint"] # noqa: W504 | ||
+ extras_require["doc"] # noqa: W504 | ||
+ extras_require["test"] | ||
+ extras_require["lint"] | ||
+ extras_require["release"] | ||
+ extras_require["doc"] | ||
) | ||
|
||
with open("README.md", "r") as fp: | ||
|
@@ -36,10 +42,11 @@ | |
|
||
setup( | ||
name="tokenlists", | ||
version="0.1.0-alpha.1", | ||
use_scm_version=True, | ||
setup_requires=["setuptools_scm"], | ||
author="Ben Hauser", | ||
author_email="[email protected]", | ||
description="", | ||
description="Python implementation of Uniswaps' tokenlists", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/ApeWorX/py-tokenlists", | ||
|