Skip to content
Open
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
62 changes: 31 additions & 31 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,34 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=bad-continuation,
bad-whitespace,
bare-except,
broad-except,
consider-using-in,
consider-using-ternary,
fixme,
global-statement,
invalid-name,
missing-docstring,
no-else-raise,
no-else-return,
no-self-use,
trailing-newlines,
too-many-instance-attributes,
unused-argument,
unused-variable,
using-constant-test,
no-else-continue,
no-else-break,
chained-comparison,
useless-object-inheritance
disable=
bare-except,
broad-except,
broad-exception-raised,
consider-using-in,
consider-using-ternary,
consider-using-dict-items,
fixme,
global-statement,
invalid-name,
missing-docstring,
no-else-raise,
no-else-return,
trailing-newlines,
too-many-instance-attributes,
too-many-branches,
too-many-statements,
unused-argument,
unused-variable,
using-constant-test,
no-else-continue,
no-else-break,
condition-evals-to-constant,
chained-comparison,
consider-using-f-string,
use-dict-literal,
duplicate-code,
useless-object-inheritance

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down Expand Up @@ -401,13 +407,6 @@ max-line-length=160
# Maximum number of lines in a module.
max-module-lines=10000

# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,
dict-separator

# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
Expand Down Expand Up @@ -509,5 +508,6 @@ known-third-party=enchant

# Exceptions that will emit a warning when being caught. Defaults to
# "BaseException, Exception".
overgeneral-exceptions=BaseException,
Exception
overgeneral-exceptions=builtins.BaseException,
builtins.Exception

3 changes: 2 additions & 1 deletion pricing/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.json
cache
cache*
diffs
18 changes: 11 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,26 @@ envlist = lint,py3
[package]
name = vmtool
main_deps =
-r./requirements.txt
-r./requirements.txt
lint_deps =
pylint==2.5.3
pyenchant==2.0.0
pylint==2.16.1
pyenchant==3.2.2
pyflakes==3.0.1
pytype==2023.2.9
test_deps =
pytest==6.0.1
pytest-cov==2.10.0
pytest==7.2.1
coverage==7.1.0
test_dir = "{toxinidir}/tests"


[testenv]
deps =
{[package]test_deps}
{[package]main_deps}
commands =
{envpython} --version
pytest --cov {posargs}
coverage run -m pytest {posargs}
coverage html -d cover/{envname}
coverage report

[testenv:lint]
basepython = python3
Expand All @@ -30,4 +33,5 @@ deps =
{[package]main_deps}
commands =
pylint {[package]name}
pytype {[package]name}

Loading