-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mostly get rid of setup.cfg, bump to post1 version
- Loading branch information
1 parent
2c6de7b
commit ca981d7
Showing
3 changed files
with
54 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,58 @@ | ||
[tool.coverage.run] | ||
source = ["scrapli/"] | ||
omit = ["scrapli/transport/plugins/system/ptyprocess.py"] | ||
|
||
[tool.coverage.report] | ||
sort = "cover" | ||
omit = ["scrapli/transport/plugins/system/ptyprocess.py"] | ||
|
||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py310'] | ||
target-version = ["py311"] | ||
|
||
[tool.pytest.ini_options] | ||
asyncio_mode = "auto" | ||
|
||
[tool.pylama] | ||
linters = "mccabe,pycodestyle,pylint" | ||
skip = ".nox/*,build/*,docs/*,private/*,scrapli/transport/plugins/system/ptyprocess.py,site/*,tests/*,venv/*" | ||
|
||
[tool.pylama.pycodestyle] | ||
max_line_length = 100 | ||
|
||
[tool.pylama.pylint] | ||
rcfile = ".pylintrc" | ||
|
||
[tool.pydocstyle] | ||
match-dir = "^scrapli/*" | ||
ignore = "D101,D202,D203,D212,D400,D406,D407,D408,D409,D415" | ||
# D101: missing docstring in public class | ||
# D202: No blank lines allowed after function docstring | ||
# D203: 1 blank line required before class docstring | ||
# D212: Multi-line docstring summary should start at the first line | ||
# D400: First line should end with a period | ||
# D406: Section name should end with a newline | ||
# D407: Missing dashed underline after section | ||
# D408: Section underline should be in the line following the sections name | ||
# D409: Section underline should match the length of its name | ||
# D415: first line should end with a period, question mark, or exclamation point | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 100 | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
known_first_party = "scrapli" | ||
known_third_party = "asyncssh,napalm,pytest" | ||
|
||
[tool.mypy] | ||
python_version = "3.11" | ||
pretty = true | ||
ignore_missing_imports = true | ||
warn_redundant_casts = true | ||
warn_unused_configs = true | ||
strict_optional = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = "scrapli.transport.plugins.system.ptyprocess" | ||
ignore_errors = true |
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,55 +1,4 @@ | ||
[coverage:run] | ||
source = scrapli/ | ||
omit = scrapli/transport/plugins/system/ptyprocess.py | ||
|
||
[coverage:report] | ||
sort = cover | ||
omit = scrapli/transport/plugins/system/ptyprocess.py | ||
|
||
[pylama] | ||
linters = mccabe,pycodestyle,pylint | ||
skip = .nox/*,build/*,docs/*,private/*,scrapli/transport/plugins/system/ptyprocess.py,site/*,tests/*,venv/* | ||
|
||
[pylama:pycodestyle] | ||
max_line_length = 100 | ||
|
||
[pylama:pylint] | ||
rcfile = .pylintrc | ||
|
||
[pydocstyle] | ||
match-dir = ^scrapli/* | ||
ignore = D101,D202,D203,D212,D400,D406,D407,D408,D409,D415 | ||
# D101: missing docstring in public class | ||
# D202: No blank lines allowed after function docstring | ||
# D203: 1 blank line required before class docstring | ||
# D212: Multi-line docstring summary should start at the first line | ||
# D400: First line should end with a period | ||
# D406: Section name should end with a newline | ||
# D407: Missing dashed underline after section | ||
# D408: Section underline should be in the line following the sections name | ||
# D409: Section underline should match the length of its name | ||
# D415: first line should end with a period, question mark, or exclamation point | ||
|
||
[isort] | ||
profile = black | ||
line_length = 100 | ||
multi_line_output = 3 | ||
include_trailing_comma = True | ||
known_first_party = scrapli | ||
known_third_party = asyncssh,napalm,pytest | ||
|
||
[darglint] | ||
docstring_style = google | ||
strictness = full | ||
ignore = DAR202 | ||
|
||
[mypy] | ||
python_version = 3.10 | ||
pretty = True | ||
ignore_missing_imports = True | ||
warn_redundant_casts = True | ||
warn_unused_configs = True | ||
strict_optional = True | ||
|
||
[mypy-scrapli.transport.plugins.system.ptyprocess] | ||
ignore_errors = True |
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