generated from carbonplan/python-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4566a5b
commit 15604f1
Showing
3 changed files
with
70 additions
and
58 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 |
---|---|---|
@@ -1,8 +1,67 @@ | ||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py38'] | ||
target-version = ['py39'] | ||
skip-string-normalization = true | ||
|
||
|
||
[build-system] | ||
requires = ["setuptools>=30.3.0", "wheel", "setuptools_scm"] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"] | ||
|
||
|
||
[tool.ruff] | ||
line-length = 100 | ||
target-version = "py39" | ||
builtins = ["ellipsis"] | ||
# Exclude a variety of commonly ignored directories. | ||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".hg", | ||
".mypy_cache", | ||
".nox", | ||
".pants.d", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"venv", | ||
] | ||
per-file-ignores = {} | ||
# E402: module level import not at top of file | ||
# E501: line too long - let black worry about that | ||
# E731: do not assign a lambda expression, use a def | ||
ignore = [ | ||
"E402", | ||
"E501", | ||
"E731", | ||
] | ||
select = [ | ||
# Pyflakes | ||
"F", | ||
# Pycodestyle | ||
"E", | ||
"W", | ||
# isort | ||
"I", | ||
# Pyupgrade | ||
"UP", | ||
] | ||
|
||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 18 | ||
|
||
[tool.ruff.isort] | ||
known-first-party = ["ndpyramid"] | ||
|
||
[tool.pytest.ini_options] | ||
console_output_style = "count" | ||
addopts = "--cov=./ --cov-report=xml --verbose" |