Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Commit eb94579

Browse files
author
staticdev
committed
Various fixes
1 parent 0695a3c commit eb94579

4 files changed

Lines changed: 24 additions & 21 deletions

File tree

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def safety(session: Session) -> None:
205205
"""Scan dependencies for insecure packages."""
206206
install(session, "safety")
207207
requirements = export_requirements(session, dev=True)
208-
session.run("safety", "check", f"--file={requirements}")
208+
session.run("safety", "check", f"--file={requirements}", "--bare")
209209

210210

211211
@nox.session(python=python_versions)

poetry.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ flake8 = "^3.8.4"
2525
flake8-bandit = "^2.1.2"
2626
flake8-bugbear = "^20.11.1"
2727
safety = "^1.10.2"
28-
mypy = "^0.790"
2928
pytest-mock = "^3.5.1"
3029
typeguard = "^2.10.0"
3130
pre-commit = "^2.9.3"
@@ -39,6 +38,7 @@ flake8-rst-docstrings = "^0.0.14"
3938
pep8-naming = "^0.11.1"
4039
pre-commit-hooks = "^3.4.0"
4140
reorder-python-imports = "^2.3.6"
41+
mypy = "0.782"
4242

4343
[tool.poetry.scripts]
4444
toml-validator = "toml_validator.__main__:main"

src/toml_validator/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
def main(filename: str) -> None:
1212
"""Makes validations and echos errors if found.
1313
14+
Args:
15+
filename: name of validated file.
16+
1417
Return status:
1518
* 0: no errors found
1619
* 1: incorrect usage

0 commit comments

Comments
 (0)