Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move configs from setup.cfg into pyproject.toml #394

Merged
merged 1 commit into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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