Skip to content

Commit

Permalink
feat: Switch flake8 to use pyproject.toml (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
dciborow authored Mar 12, 2023
1 parent 767a052 commit 9a70b5e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
19 changes: 0 additions & 19 deletions .flake8

This file was deleted.

4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"/usr/local/py-utils/bin/black"
],
"flake8.args": [
"--config=.flake8"
"--toml-config=pyproject.toml"
],
"flake8.path": [
"/usr/local/py-utils/bin/flake8"
]
}
}
27 changes: 25 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ test = [
"flake8-bugbear==22.1.11",
"flake8-docstrings",
"flake8-formatter_junit_xml",
"flake8==4.0.1",
"flake8",
"flake8-pyproject",
"pre-commit==2.17.0",
"pylint==2.12.2",
"pylint==2.17.0",
"pylint_junit",
"pytest-cov==3.0.0",
"pytest-mock<3.7.1",
Expand Down Expand Up @@ -69,6 +70,28 @@ branch = true
[tool.coverage.report]
fail_under = 100

[tool.flake8]
max-line-length = 120
select = "F,E,W,B,B901,B902,B903"
exclude = [
".eggs",
".git",
".tox",
"nssm",
"obj",
"out",
"packages",
"pywin32",
"tests",
"swagger_client"
]
ignore = [
"E722",
"B001",
"W503",
"E203"
]

[tool.pyright]
include = ["src"]
exclude = [
Expand Down

0 comments on commit 9a70b5e

Please sign in to comment.