|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "BayesicFitting" |
| 7 | +version = "3.2.5" |
| 8 | +dependencies = [ |
| 9 | + 'numpy >= 1.9', |
| 10 | + 'matplotlib >= 2.0', |
| 11 | + 'scipy >= 1.0', |
| 12 | + 'astropy >= 2.0', |
| 13 | + 'future' |
| 14 | +] |
| 15 | +authors = [ |
| 16 | + { name = "Do Kester", email = "dokester@home.nl" } |
| 17 | +] |
| 18 | +description = "A Toolbox for Bayesian Fitting and Evidence Calculation" |
| 19 | +readme = "README.md" |
| 20 | +requires-python = ">=3.8" |
| 21 | +license = "GPL-3.0-or-later" |
| 22 | +keywords = [ |
| 23 | + 'Bayesian', 'modeling', 'evidence', 'statistics', 'analysis', |
| 24 | + 'regression', 'inference', 'optimization','nested sampling', 'fitting' |
| 25 | +] |
| 26 | +classifiers = [ |
| 27 | + "Development Status :: 4 - Beta", |
| 28 | + "Programming Language :: Python :: 3", |
| 29 | + "Operating System :: OS Independent", |
| 30 | + "Intended Audience :: Science/Research", |
| 31 | + "Topic :: Scientific/Engineering" |
| 32 | +] |
| 33 | + |
| 34 | +[project-urls] |
| 35 | +homepage = "https://dokester.github.io/BayesicFitting/" |
| 36 | + |
| 37 | +#[tool.setuptools] |
| 38 | +#packages=[ |
| 39 | +# 'BayesicFitting', 'BayesicFitting/source', 'BayesicFitting/source/kernels', |
| 40 | +# 'BayesicFitting/test', 'BayesicFitting/examples' |
| 41 | +#] |
| 42 | + |
| 43 | +[tool.ruff] |
| 44 | +# Exclude a variety of commonly ignored directories. |
| 45 | +exclude = [ |
| 46 | + "BayesicFitting/TBD-examples", |
| 47 | + "BayesicFitting/TBD-tests", |
| 48 | + "BayesicFitting/__pycache__", |
| 49 | + ".git", |
| 50 | + ".pytest_cache", |
| 51 | + ".ruff_cache", |
| 52 | + "build", |
| 53 | + "_build", |
| 54 | + "dist", |
| 55 | + "docs", |
| 56 | + "REFDOC", |
| 57 | + "refman" |
| 58 | +] |
| 59 | + |
| 60 | +# Same as Black. |
| 61 | +line-length = 100 |
| 62 | +indent-width = 4 |
| 63 | + |
| 64 | +# Assume Python 3.8 |
| 65 | +target-version = "py310" |
| 66 | + |
| 67 | +[tool.ruff.lint] |
| 68 | +# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. |
| 69 | +# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or |
| 70 | +# McCabe complexity (`C901`) by default. |
| 71 | +select = ["E4", "E7", "E9", "F", "NPY201"] |
| 72 | + |
| 73 | +# F401 : imported not used |
| 74 | +# E701 : multiple statements on one line |
| 75 | +ignore = ["F401", "E701"] |
| 76 | + |
| 77 | +# Allow fix for all enabled rules (when `--fix`) is provided. |
| 78 | +fixable = ["ALL"] |
| 79 | +unfixable = [] |
| 80 | + |
| 81 | +# Allow unused variables when underscore-prefixed. |
| 82 | +dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
| 83 | + |
| 84 | +[tool.ruff.format] |
| 85 | +# Like Black, use double quotes for strings. |
| 86 | +quote-style = "double" |
| 87 | + |
| 88 | +# Like Black, indent with spaces, rather than tabs. |
| 89 | +indent-style = "space" |
| 90 | + |
| 91 | +# Like Black, respect magic trailing commas. |
| 92 | +skip-magic-trailing-comma = false |
| 93 | + |
| 94 | +# Like Black, automatically detect the appropriate line ending. |
| 95 | +line-ending = "auto" |
| 96 | + |
| 97 | +# Enable auto-formatting of code examples in docstrings. Markdown, |
| 98 | +# reStructuredText code/literal blocks and doctests are all supported. |
| 99 | +# |
| 100 | +# This is currently disabled by default, but it is planned for this |
| 101 | +# to be opt-out in the future. |
| 102 | +docstring-code-format = false |
| 103 | + |
| 104 | +# Set the line length limit used when formatting code snippets in |
| 105 | +# docstrings. |
| 106 | +# |
| 107 | +# This only has an effect when the `docstring-code-format` setting is |
| 108 | +# enabled. |
| 109 | +docstring-code-line-length = "dynamic" |
| 110 | + |
0 commit comments