Skip to content

Commit

Permalink
Merge pull request #394 from orsinium-forks/pyproject-toml
Browse files Browse the repository at this point in the history
Move configs from setup.cfg into pyproject.toml
  • Loading branch information
wallyqs authored Nov 25, 2022
2 parents 51bfb32 + 28dfd40 commit 8d75773
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion CODE-OF-CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Community Code of Conduct
# Community Code of Conduct

NATS follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,28 @@ version = {attr = "nats.aio.client.__version__"}
include = ["nats*"] # package names should match these glob patterns (["*"] by default)
exclude = ["scripts", "tests"] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)

[tool.mypy]
files = ["nats"]
python_version = "3.7"
ignore_missing_imports = true
follow_imports = "silent"
show_error_codes = true
check_untyped_defs = false

[tool.pytest.ini_options]
addopts = ["--cov=nats", "--cov-report=html"]

[tool.yapf]
split_before_first_argument = true
dedent_closing_brackets = true
coalesce_brackets = true
allow_split_before_dict_value = false
indent_dictionary_value = true
split_before_expression_after_opening_paren = true

[tool.isort]
combine_as_imports = true
multi_line_output = 3
include_trailing_comma = true
src_paths = ["nats", "tests"]
26 changes: 0 additions & 26 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,28 +1,2 @@
[mypy]
files=nats
python_version=3.7
ignore_missing_imports=true
follow_imports=silent
show_error_codes=true
check_untyped_defs=false

[tool:pytest]
addopts=--cov=nats --cov-report html
testpaths=tests

[yapf]
split_before_first_argument=true
dedent_closing_brackets=true
coalesce_brackets=true
allow_split_before_dict_value=false
indent_dictionary_value=true
split_before_expression_after_opening_paren=true

[flake8]
max-line-length = 120

[isort]
combine_as_imports=true
multi_line_output=3
include_trailing_comma=true
src_paths=nats,tests

0 comments on commit 8d75773

Please sign in to comment.