Skip to content

Commit

Permalink
Updated tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
franneck94 committed Sep 11, 2021
1 parent 5a901ea commit d0d2e2c
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 43 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.txt
*.isorted
!requirements.txt
!requirements-dev.txt
build/
!docs/build/
.benchmarks/
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
rev: 3.9.2
hooks:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5.3
- repo: https://github.com/psf/black
rev: 21.8b0
hooks:
- id: autopep8
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.5.3
rev: 5.9.3
hooks:
- id: isort
22 changes: 22 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Packaging
setuptools
wheel
twine

# Docs
mkdocs
mkdocstrings
pygments

# Linting/Tooling
flake8
mypy
isort
black
pre-commit

# Testing
pytest
codecov
pytest-cov
tox
22 changes: 0 additions & 22 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,3 @@ tensorflow-datasets
scikit-learn
scipy
numpy

# Docs
mkdocs
mkdocstrings
pygments

# Linting/Tooling
pylint
flake8
mypy
isort
autopep8
pre-commit

# Testing
pytest
codecov
pytest-cov
tox

# Packaging
twine
30 changes: 16 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

CLASSIFIERS = """\
License :: OSI Approved
Programming Language :: Python :: 3.7 :: 3.8 :: 3.9
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Software Development
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Expand All @@ -16,23 +18,23 @@

DISTNAME = "tensorcross"
AUTHORS = "Jan Schaffranek, Saif Al-Dilaimi"
DESCRIPTION = ("Cross Validation, Grid Search and Random Search "
"for TensorFlow Datasets.")
DESCRIPTION = (
"Cross Validation, Grid Search and Random Search "
"for TensorFlow Datasets."
)
LICENSE = "MIT"
README = ("Cross Validation, Grid Search and Random Search for TensorFlow "
"Datasets. For more information see here: "
"https://github.com/franneck94/TensorCross")
README = (
"Cross Validation, Grid Search and Random Search for TensorFlow "
"Datasets. For more information see here: "
"https://github.com/franneck94/TensorCross"
)

VERSION = __version__
ISRELEASED = False

MIN_PYTHON_VERSION = "3.7"
INSTALL_REQUIRES = [
"tensorflow>=2.0",
"numpy",
"scipy",
"scikit-learn"
]
MAX_PYTHON_VERSION = "3.9"
INSTALL_REQUIRES = ["tensorflow>=2.0", "numpy", "scipy", "scikit-learn"]

PACKAGES = find_packages(include=["tensorcross", "tensorcross.*"])

Expand All @@ -42,11 +44,11 @@
long_description=README,
packages=PACKAGES,
author=AUTHORS,
python_requires=f">={MIN_PYTHON_VERSION}",
python_requires=f">={MIN_PYTHON_VERSION},<={MAX_PYTHON_VERSION}",
install_requires=INSTALL_REQUIRES,
description=DESCRIPTION,
classifiers=[CLASSIFIERS],
license=LICENSE
license=LICENSE,
)


Expand Down
2 changes: 1 addition & 1 deletion tensorcross/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.0"
__version__ = "0.4.1"

0 comments on commit d0d2e2c

Please sign in to comment.