Skip to content

Commit

Permalink
build: mv flake8, coverage into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tanlin2013 committed Mar 2, 2023
1 parent 7a7f329 commit 6d3850f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .coveragerc

This file was deleted.

2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
### Custom field
.github/
docs/
.coveragerc
.dockerignore
.gitignore
.pre-commit-config.yml
CHANGELOG.md
Dockerfile
LICENSE
setup.cfg

### VisualStudioCode template
.vscode/*
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ repos:
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [Flake8-pyproject]

- repo: https://github.com/python-poetry/poetry
rev: 1.3.2
Expand Down
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,22 @@ line-length = 100
[tool.isort]
profile = "black"

[tool.flake8]
count = true
max-line-length = 100
ignore = [
"E203",
"W503"
]

[tool.mypy]
ignore_missing_imports = true
strict_optional = false
plugins = ["numpy.typing.mypy_plugin"]

[tool.coverage.report]
exclude_lines = ["pragma: no cover"]
omit = ["*tests*"]

[tool.bandit]
skips = ["B101"]
Expand Down
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

0 comments on commit 6d3850f

Please sign in to comment.