-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add setup.cfg and reformat the code;
- Loading branch information
Showing
3 changed files
with
49 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This file stores some meta configurations for project PyCorruptor. | ||
|
||
# Created by Wenjie Du <[email protected]> | ||
# License: GLP-v3 | ||
|
||
[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, |
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 |
---|---|---|
@@ -1,32 +1,36 @@ | ||
from setuptools import setup, find_packages | ||
|
||
from pycorruptor.__version__ import version | ||
from pycorruptor import __version__ | ||
|
||
with open('./README.md', encoding='utf-8') as f: | ||
with open("./README.md", encoding="utf-8") as f: | ||
README = f.read() | ||
|
||
setup( | ||
name='pycorruptor', | ||
version=version, | ||
description='A Python Toolbox for Data Corruption', | ||
name="pycorruptor", | ||
version=__version__, | ||
description="A Python Toolbox for Data Corruption", | ||
long_description=README, | ||
long_description_content_type='text/markdown', | ||
license='GPL-3.0', | ||
author='Wenjie Du', | ||
author_email='[email protected]', | ||
url='https://github.com/WenjieDu/PyCorruptor', | ||
download_url='https://github.com/WenjieDu/PyCorruptor/archive/main.zip', | ||
long_description_content_type="text/markdown", | ||
license="GPL-3.0", | ||
author="Wenjie Du", | ||
author_email="[email protected]", | ||
url="https://github.com/WenjieDu/PyCorruptor", | ||
download_url="https://github.com/WenjieDu/PyCorruptor/archive/main.zip", | ||
keywords=[ | ||
'missing data', 'missing values', 'data corruption', | ||
'incomplete data', 'partial observation', | ||
'data mining', | ||
"missing data", | ||
"missing values", | ||
"data corruption", | ||
"incomplete data", | ||
"partial observation", | ||
"data mining", | ||
"missingness", | ||
], | ||
packages=find_packages(exclude=['tests']), | ||
packages=find_packages(exclude=["tests"]), | ||
include_package_data=True, | ||
install_requires=[ | ||
'numpy', | ||
'scikit_learn', | ||
'pandas', | ||
"numpy", | ||
"scikit_learn", | ||
"pandas", | ||
], | ||
setup_requires=['setuptools>=38.6.0'], | ||
setup_requires=["setuptools>=38.6.0"], | ||
) |