Skip to content

Commit

Permalink
mostly get rid of setup.cfg, bump to post1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Sep 3, 2022
1 parent 2c6de7b commit ca981d7
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 53 deletions.
54 changes: 53 additions & 1 deletion pyproject.toml
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
51 changes: 0 additions & 51 deletions setup.cfg
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import setuptools

__version__ = "2022.07.30"
__version__ = "2022.07.30.post1"
__author__ = "Carl Montanari"

with open("README.md", "r", encoding="utf-8") as f:
Expand Down

0 comments on commit ca981d7

Please sign in to comment.