Skip to content

Commit

Permalink
Add setup.cfg back for flake8 since it does not support pyproject.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Dec 19, 2022
1 parent 60e3e42 commit b10fa0c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ repos:
rev: v4.3.20
hooks:
- id: isort
additional_dependencies: ["toml"]
#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.720
# hooks:
Expand Down
17 changes: 5 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,12 @@ homepage = "https://analogdevicesinc.github.io/pyadi-iio/"
documentation = "https://analogdevicesinc.github.io/pyadi-iio/"
repository = "https://github/analogdevicesinc/pyadi-iio"

[isort]
multi_line_output="3"
[tool.isort]
multi_line_output=3
include_trailing_comma="True"
force_grid_wrap="0"
force_grid_wrap=0
use_parentheses="True"
line_length="88"
line_length=88

[flake8]
ignore = ["E203", "E266", "E501", "W503", "F401", "F403"]
max-line-length = "88"
max-complexity = "18"
select = ["B","C","E","F","W","T4"]
exclude = ["test/*","examples/*","doc/*","images/*"]

[mypy]
[tool.mypy]
ignore_missing_imports="true"
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ pytest-html
plotly-express
pyvisa
matplotlib
pytoml
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[flake8]
ignore = E203, E266, E501, W503, F401, F403
max-line-length = 88
max-complexity = 18
select = B,C,E,F,W,T4
exclude = test/*,examples/*,doc/*,images/*

0 comments on commit b10fa0c

Please sign in to comment.