-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee9c93a
commit b3a7342
Showing
3 changed files
with
75 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pre-commit |
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,19 @@ | ||
[flake8] | ||
# References: | ||
# https://flake8.readthedocs.io/en/latest/user/configuration.html | ||
# https://flake8.readthedocs.io/en/latest/user/error-codes.html | ||
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes | ||
exclude = __init__.py,versioneer.py | ||
ignore = | ||
E20, # Extra space in brackets | ||
E231,E241, # Multiple spaces around "," | ||
E26, # Comments | ||
E4, # Import formatting | ||
E721, # Comparing types instead of isinstance | ||
E731, # Assigning lambda expression | ||
E741, # Ambiguous variable names | ||
W503, # line break before binary operator | ||
W504, # line break after binary operator | ||
F811, # redefinition of unused 'loop' from line 10 | ||
F401, # It gives some errors to importing Figure | ||
max-line-length = 120 |
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,55 @@ | ||
import setuptools | ||
|
||
with open("README.md") as fh: | ||
long_description = fh.read() | ||
|
||
install_requires = [ | ||
"numpy >= 1.19.4", | ||
"scipy >= 1.5.4", | ||
"scikit-learn", | ||
"scikit-image", | ||
"fbpca >= 1.0", | ||
"joblib", | ||
"h5py", | ||
"astropy", | ||
"hdfdict", | ||
"matplotlib", | ||
] | ||
|
||
# extras_require["complete"] = sorted({v for req in extras_require.values() for v in req}) | ||
|
||
packages = [ | ||
"hannibal_specter", | ||
"hannibal_specter.decomposition", | ||
"hannibal_specter.data", | ||
"hannibal_specter.fake", | ||
"hannibal_specter.file", | ||
"hannibal_specter.gridsearch", | ||
"hannibal_specter.template", | ||
"hannibal_specter.preprocess", | ||
"hannibal_specter.plot", | ||
"hannibal_specter.quality", | ||
"hannibal_specter.varia", | ||
"hannibal_specter.math", | ||
] | ||
|
||
tests = [p + ".tests" for p in packages] | ||
|
||
setuptools.setup( | ||
name="hannibal-specter", | ||
version="0.0.1", | ||
author="R.A.R. MOENS", | ||
author_email="[email protected]", | ||
description="A small package for robust matrix decomposition.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/RogerMoens/hannibal-specter", | ||
packages=packages + tests, | ||
install_requires=install_requires, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
], | ||
python_requires=">=3.6", | ||
) |