forked from CederGroupHub/sparse-lm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
82 lines (71 loc) · 2.36 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[build-system]
requires = ["setuptools>=45", "setuptools-scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "sparse-lm"
description = "Sparse linear regression models"
authors = [
{name = "Luis Barroso-Luque", email = "[email protected]"}
]
readme = "README.md"
license = {text = "BSD 3-Clause License"}
dynamic = ["version"]
dependencies = [
"numpy >=1.23", "cvxpy >=1.2", "scikit-learn >=1.2.1",
"scipy >=1.9", "joblib"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development :: Libraries :: Python Modules"
]
[project.optional-dependencies]
dev = ["pre-commit", "black", "isort", "flake8", "pylint", "pydocstyle", "flake8-pyproject"]
# Gurobipy needed by mixedL0 tests, pandas needed by sklearn convention checks.
tests = ["pytest >=7.2.0", "pytest-cov >=4.0.0", "coverage", "pandas", "gurobipy", "pyscipopt"]
docs = ["sphinx>=5.3", "furo", "m2r2", "sphinx-gallery", "matplotlib", "gurobipy", "pymatgen"]
optional = ["gurobipy"]
# pyproject.toml
[tool.setuptools_scm]
# linting tools, etc
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-x --durations = 30 --quiet -rxXs --color = yes"
filterwarnings = [
'ignore::UserWarning',
'ignore::FutureWarning',
'ignore::RuntimeWarning'
]
[tool.flake8]
exclude = ['docs', 'tests']
ignore = ['E203', 'E501', 'W503']
max-line-length = 88
[tool.pylint.main]
ignore = ["tests"]
[tool.pylint.basic]
argument-naming-style = "snake_case"
attr-naming-style = "snake_case"
method-naming-style = "snake_case"
function-naming-style = "snake_case"
class-naming-style = "PascalCase"
good-names = ['id', 'kB', 'i', 'j', 'k', 'f']
[too.pylint."messages control"]
disable = ['W0511', 'R0904', 'R0903', 'R0913', 'R0902', 'R0914', 'C0415']
[tool.codespell]
skip = "*.c,./.*"
count = ''
quiet-level = 3
ignore-words-list = ['nd', 'tread']
[tool.coverage.run]
source = ["src/sparselm"]
omit = ["*/__init__.py"]
[tool.pydocstyle]
convention = "google"
add_ignore = ["D107"]