diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 357561e..a8c807b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,6 +18,6 @@ repos: hooks: - id: flake8 args: [ - --max-line-length=120, # refer to setup.cfg + --max-line-length=120, # refer to pyproject.toml --extend-ignore=E203, # why ignore E203? Refer to https://github.com/PyCQA/pycodestyle/issues/373 ] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 6a54059..0000000 --- a/setup.cfg +++ /dev/null @@ -1,18 +0,0 @@ -# This file stores some meta configurations for project PyGrinder. - -# Created by Wenjie Du -# License: BSD-3-Clause - -[flake8] -# People may argue that coding style is personal. This may be true if the project is personal and one works like a -# hermit, but to PyPOTS and its community, the answer is NO. -# We use Black and Flake8 to lint code style and keep the style consistent across all commits and pull requests. -# Black only reformats the code, and Flake8 is necessary for checking for some other issues not covered by Black. - -# The Black line length is default as 88, while the default of Flake8 is 79. However, considering our monitors are -# much more advanced nowadays, I extend the maximum line length to 120, like other project e.g. transformers. People -# who prefer the default setting can keep using 88 or 79 while coding. Please ensure your code lines not exceeding 120. -max-line-length = 120 -extend-ignore = -# why ignore E203? Refer to https://github.com/PyCQA/pycodestyle/issues/373 - E203, diff --git a/setup.py b/setup.py deleted file mode 100644 index 06dd259..0000000 --- a/setup.py +++ /dev/null @@ -1,52 +0,0 @@ -from setuptools import setup, find_packages - -from pygrinder import __version__ - -with open("./README.md", encoding="utf-8") as f: - README = f.read() - -setup( - name="pygrinder", - version=__version__, - description="A Python toolkit for introducing missing values into datasets", - long_description=README, - long_description_content_type="text/markdown", - license="BSD-3-Clause", - author="Wenjie Du", - author_email="wenjay.du@gmail.com", - url="https://github.com/WenjieDu/PyGrinder", - download_url="https://github.com/WenjieDu/PyGrinder/archive/main.zip", - keywords=[ - "data corruption", - "incomplete data", - "data mining", - "pypots", - "missingness", - "partially observed", - "irregular sampled", - "partially-observed time series", - "incomplete time series", - "missing data", - "missing values", - "pypots", - ], - packages=find_packages(exclude=["tests"]), - include_package_data=True, - install_requires=[ - "numpy", - "scipy", - "pandas", - "torch", - "tsdb", - ], - setup_requires=["setuptools>=38.6.0"], - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "Intended Audience :: Education", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: BSD License", - "Operating System :: OS Independent", - "Programming Language :: Python :: 3", - ], -)