-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/branch-23.12' into grelee/buil…
…d-using-pyproject-toml
- Loading branch information
Showing
3 changed files
with
130 additions
and
228 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
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,129 @@ | ||
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. | ||
# See file LICENSE for terms. | ||
|
||
[tool.isort] | ||
profile = "black" | ||
force_single_line = false | ||
line_length = 80 | ||
forced_separate = "test_cucim" | ||
force_grid_wrap = 0 | ||
multi_line_output = 3 | ||
order_by_type = true | ||
combine_as_imports = true | ||
include_trailing_comma = true | ||
known_first_party = [ | ||
"cucim", | ||
] | ||
default_section = "THIRDPARTY" | ||
sections = [ | ||
"FUTURE", | ||
"STDLIB", | ||
"THIRDPARTY", | ||
"FIRSTPARTY", | ||
"LOCALFOLDER", | ||
] | ||
skip = [ | ||
"3rdparty", | ||
"thirdparty", | ||
".eggs", | ||
".git", | ||
".hg", | ||
".mypy_cache", | ||
".tox", | ||
".venv", | ||
"ci", | ||
"cpp", | ||
"_build", | ||
"build", | ||
"build-debug", | ||
"build-release", | ||
"_deps", | ||
"dist", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
# If a pytest section is found in one of the possible config files | ||
# (pytest.ini, tox.ini or setup.cfg), then pytest will not look for any others, | ||
# so if you add a pytest config section elsewhere, | ||
# you will need to delete this section from setup.cfg. | ||
norecursedirs = "migrations" | ||
python_files = [ | ||
"test_*.py", | ||
"*_test.py", | ||
"tests.py", | ||
] | ||
addopts = [ | ||
"-ra", | ||
"--strict-markers", | ||
# --doctest-modules", | ||
# --doctest-glob=\*.rst", | ||
"--tb=short", | ||
"--ignore-glob=build*", | ||
] | ||
testpaths = [ | ||
"src", | ||
"tests", | ||
] | ||
|
||
[tool.ruff] | ||
select = ["E", "F", "W"] | ||
fixable = ["ALL"] | ||
exclude = [ | ||
# TODO: Remove this in a follow-up where we fix __all__. | ||
".tox", | ||
".eggs", | ||
"ci/templates", | ||
"build", | ||
"dist", | ||
".git", | ||
"__pycache__", | ||
"doc/conf.py", | ||
"doc/sphinxext", | ||
"__init__.py", | ||
] | ||
line-length = 80 | ||
|
||
[tool.ruff.per-file-ignores] | ||
# "src/cucim/skimage/util/tests/test_shape.py" = ["E201", "E202"] | ||
|
||
[tool.black] | ||
line-length = 80 | ||
target-version = ["py39"] | ||
include = '\.py?$' | ||
exclude = ''' | ||
/( | ||
3rdparty | | ||
thirdparty | | ||
\.eggs | | ||
\.git | | ||
\.hg | | ||
\.mypy_cache | | ||
\.tox | | ||
\.venv | | ||
_build | | ||
_deps | | ||
cpp | | ||
ci | | ||
build | | ||
build-debug | | ||
build-release | | ||
dist | | ||
docker | | ||
docs | | ||
)/ | ||
''' | ||
|
||
[tool.setuptools] | ||
license-files = ["LICENSE"] | ||
|
||
[tool.codespell] | ||
# note: pre-commit passes explicit lists of files here, which this skip file list doesn't override - | ||
# this is only to allow you to run codespell interactively | ||
# e.g. via | ||
# codespell --toml python/cucim/pyproject.toml . -i 3 -w | ||
skip = "build*,dist,.cache,html,_build,_deps,3rdparty,_static,generated,latex,.git,*.ipynb,test_data/input/LICENSE-3rdparty,jitify_testing" | ||
# ignore-regex = "" | ||
ignore-words-list = "ans,coo,boun,bui,gool,hart,lond,nd,paeth,unser,wronly" | ||
quiet-level = 3 | ||
|
||
# to undo: ./test_data/input/LICENSE-3rdparty |
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