Skip to content

Commit

Permalink
adding linting files
Browse files Browse the repository at this point in the history
  • Loading branch information
patkivikram committed Oct 7, 2022
1 parent 1b233d9 commit 0bc16a1
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 63 deletions.
2 changes: 2 additions & 0 deletions .bandit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bandit]
exclude: *venv*,*env*,*scratch*
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
max-line-length = 88
max-complexity = 8
ignore = W503,E501
builtins = unicode
tee = True
exclude = venv,env,.venv,scratch
3 changes: 0 additions & 3 deletions mypy.ini

This file was deleted.

28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[tool.black]
line-length = 88
target-version = ["py37", "py38", "py39", "py310"]

[tool.mypy]
ignore_missing_imports = true

[tool.isort]
profile = "black"

[tool.coverage.run]
branch = true
data_file = "/tmp/dagger_coverage"

[tool.coverage.report]
fail_under = 90
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover"
]

[tool.pytest.ini_options]
addopts = "--verbose --cov=dagger --cov-report xml:/tmp/coverage.xml --cov-report term-missing"
testpaths = ["tests"]

[build-system]
requires = ["setuptools >= 40.9.0", "wheel"]
build-backend = "setuptools.build_meta"
60 changes: 0 additions & 60 deletions requirements.lock

This file was deleted.

0 comments on commit 0bc16a1

Please sign in to comment.