|
| 1 | +[build-system] |
| 2 | +requires = [ |
| 3 | + "setuptools", |
| 4 | + "setuptools-scm", |
| 5 | + # wheel, # wheel only needed if you explicitly access it during build time |
| 6 | +] |
| 7 | +build-backend = "setuptools.build_meta" |
| 8 | + |
| 9 | +[project] |
| 10 | +name = "fastvector" |
| 11 | +authors = [ |
| 12 | + { name = "Jan Schaffranek", email = "[email protected]"}, |
| 13 | +] |
| 14 | +description = "This is a simple vector python package." |
| 15 | +license = {file = "LICENSE"} |
| 16 | +requires-python = ">=3.9" |
| 17 | +classifiers = [ |
| 18 | + "Programming Language :: Python :: 3", |
| 19 | + "Programming Language :: Python :: 3", |
| 20 | + "Programming Language :: Python :: 3.9", |
| 21 | + "Programming Language :: Python :: 3.10", |
| 22 | + "Programming Language :: Python :: 3.11", |
| 23 | + "Operating System :: Microsoft :: Windows", |
| 24 | + "Operating System :: POSIX :: Linux", |
| 25 | + "Operating System :: POSIX", |
| 26 | + "Operating System :: Unix", |
| 27 | + "Operating System :: MacOS", |
| 28 | +] |
| 29 | +dependencies = [ |
| 30 | + "requests", |
| 31 | + "importlib-metadata; python_version<'3.8'", |
| 32 | + "numpy>=1.21.6; python_version<'3.11'", |
| 33 | + "numpy>=1.23.2; python_version>='3.11'", |
| 34 | +] |
| 35 | +dynamic = ["version", "readme"] |
| 36 | + |
| 37 | +[project.optional-dependencies] |
| 38 | +test = [ |
| 39 | + "pytest", |
| 40 | + "pytest-cov", |
| 41 | + "codecov", |
| 42 | + "pre-commit", |
| 43 | +] |
| 44 | +doc = [ |
| 45 | + "mkdocs", |
| 46 | + "mkdocstrings", |
| 47 | + "mkdocstrings[python]", |
| 48 | + "mkdocs-material", |
| 49 | + "Pygments", |
| 50 | +] |
| 51 | +dev = [ |
| 52 | + "black", |
| 53 | + "isort", |
| 54 | + "mypy", |
| 55 | + "pre-commit", |
| 56 | + "ruff", |
| 57 | +] |
| 58 | +all = ["fastvector[test,doc,dev]"] |
| 59 | + |
| 60 | +[tool.setuptools] |
| 61 | +platforms = ["unix", "linux", "osx", "cygwin", "win32"] |
| 62 | +packages = ["fastvector"] # optional |
| 63 | + |
| 64 | +[tool.setuptools.dynamic] |
| 65 | +version = {attr = "fastvector.__version__"} |
| 66 | +readme = {file = ["README.md"]} |
| 67 | + |
| 68 | +[tool.pytest.ini_options] |
| 69 | +minversion = "7.3" |
| 70 | +testpaths = "tests" |
| 71 | + |
| 72 | +[tool.coverage.run] |
| 73 | +branch = true |
| 74 | +parallel = true |
| 75 | +omit = [ |
| 76 | + "setup.py", |
| 77 | + "fastvector/__init__.py", |
| 78 | + "fastvector/version.py", |
| 79 | +] |
| 80 | + |
| 81 | +[tool.coverage.report] |
| 82 | +exclude_lines = [ |
| 83 | + "pragma: no cover", |
| 84 | + "def __repr__", |
| 85 | + "if self.debug", |
| 86 | + "raise AssertionError", |
| 87 | + "raise NotImplementedError", |
| 88 | + "if __name__ == .__main__.:", |
| 89 | + "raise AssertionError", |
| 90 | + "raise NotImplementedError", |
| 91 | +] |
| 92 | + |
| 93 | +[tool.coverage.paths] |
| 94 | +source = [ |
| 95 | + "fastvector/*", |
| 96 | +] |
| 97 | + |
| 98 | +[tool.coverage.html] |
| 99 | +directory = "reports" |
| 100 | + |
| 101 | +######## Tools |
| 102 | + |
1 | 103 | [tool.black]
|
2 | 104 | line-length = 80
|
3 | 105 | skip-string-normalization = false
|
4 | 106 | skip-magic-trailing-comma = false
|
| 107 | +exclude = ''' |
| 108 | +( |
| 109 | + asv_bench/env |
| 110 | + | \.egg |
| 111 | + | \.git |
| 112 | + | \.mypy_cache |
| 113 | + | \.tox |
| 114 | + | \.venv |
| 115 | + | build |
| 116 | + | setup.py |
| 117 | +) |
| 118 | +''' |
5 | 119 |
|
6 |
| -[build-system] |
7 |
| -requires = ["setuptools>=45.0", "setuptools_scm[toml]>=6.3.1", "wheel"] |
8 |
| -build-backend = "setuptools.build_meta" |
9 |
| - |
10 |
| -[tool.pytest.ini_options] |
11 |
| -testpaths = [ |
12 |
| - "tests" |
| 120 | +[tool.isort] |
| 121 | +sections = [ |
| 122 | + "FUTURE", |
| 123 | + "STDLIB", |
| 124 | + "THIRDPARTY", |
| 125 | + "FIRSTPARTY", |
| 126 | + "LOCALFOLDER" |
| 127 | +] |
| 128 | +default_section = "FIRSTPARTY" |
| 129 | +known_third_party = [ |
| 130 | + "numpy", |
| 131 | + "pandas", |
| 132 | + "keras", |
| 133 | + "tensorflow", |
| 134 | + "sklearn", |
| 135 | + "matplotlib", |
| 136 | + "scipy", |
| 137 | + "h5py", |
| 138 | + "seaborn", |
| 139 | + "numba", |
| 140 | + "gym", |
| 141 | + "PyQt6", |
| 142 | + "PyQt5", |
| 143 | + "pyqtgraph" |
13 | 144 | ]
|
| 145 | +multi_line_output = 3 |
| 146 | +lines_after_imports = 2 |
| 147 | +force_single_line = true |
| 148 | +use_parentheses = true |
| 149 | +ensure_newline_before_comments = true |
| 150 | +line_length = 80 |
| 151 | + |
| 152 | +[tool.mypy] |
| 153 | +warn_return_any = true |
| 154 | +warn_unused_configs = true |
| 155 | +ignore = [] |
| 156 | +follow_imports = "silent" |
| 157 | +check_untyped_defs = true |
| 158 | +disallow_incomplete_defs = true |
| 159 | +disallow_untyped_defs = true |
| 160 | +disallow_subclassing_any = true |
| 161 | +strict_optional = true |
| 162 | +no_implicit_optional = true |
| 163 | +warn_no_return = true |
| 164 | +warn_unreachable = true |
| 165 | +allow_untyped_globals = false |
| 166 | +allow_redefinition = false |
| 167 | +local_partial_types = false |
| 168 | +implicit_reexport = true |
| 169 | +strict_equality = true |
| 170 | + |
| 171 | +[tool.ruff] |
| 172 | +select = ["F", "E"] |
| 173 | +extend-select = ["W", "I002", "B", "UP", "PLE", "PLW", "NPY", "RUF", "PD", "SIM", "PT"] |
| 174 | +unfixable = ["NPY002"] |
| 175 | +ignore = [] |
| 176 | +fixable = ["E", "F", "W", "I", "B", "UP", "PLE", "PLW", "NPY", "RUF", "PD", "SIM", "PT"] |
| 177 | +target-version = "py39" |
| 178 | + |
| 179 | +line-length = 80 |
| 180 | +extend-exclude = ["tests", "test"] |
| 181 | +dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
| 182 | + |
| 183 | +[tool.ruff.isort] |
| 184 | +force-single-line = true |
| 185 | +force-sort-within-sections = false |
| 186 | +lines-after-imports = 2 |
| 187 | + |
| 188 | +[tool.ruff.mccabe] |
| 189 | +max-complexity = 10 |
| 190 | + |
| 191 | +[tool.ruff.pycodestyle] |
| 192 | +ignore-overlong-task-comments = true |
| 193 | + |
| 194 | +[tool.ruff.pydocstyle] |
| 195 | +convention = "numpy" |
| 196 | + |
| 197 | +[tool.ruff.flake8-annotations] |
| 198 | +allow-star-arg-any = false |
| 199 | +ignore-fully-untyped = false |
0 commit comments