Skip to content

Commit 7e5a15b

Browse files
authored
Change project layout (#12)
1 parent 113d0f3 commit 7e5a15b

File tree

21 files changed

+28
-13
lines changed

21 files changed

+28
-13
lines changed

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# Caches
12
__pycache__/
23
/*cache/
3-
docs/_build/
4-
activate.sh
54

6-
# IDEs
5+
# Build artifacts
6+
/dist/
7+
/docs/_build/
8+
9+
# IDEs and dev files
10+
activate.sh
711
.vscode/

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ sphinx-issues = "^1.2.0"
4444
numpydoc = "^1.1.0"
4545
matplotlib = "^3.3.3"
4646

47+
[tool.pytest.ini_options]
48+
addopts = [
49+
"--import-mode=importlib",
50+
]
51+
# Flaky tests should be marked as xfail(strict=False),
52+
# this will notify us when a test considered broken starts succeeding.
53+
xfail_strict = true
54+
4755
[tool.ruff]
4856
# TODO: remove `target-version` when switching to PEP 621
4957
target-version = "py39"
@@ -63,6 +71,8 @@ ignore = [
6371
]
6472
[tool.ruff.per-file-ignores]
6573
"examples/*.py" = ["E402"]
74+
[tool.ruff.isort]
75+
known-first-party = ["sklearn_ann"]
6676

6777
[build-system]
6878
requires = ["setuptools", "poetry-core>=1.0.0"]

sklearn_ann/kneighbors/tests/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)