Skip to content

Commit

Permalink
add flake8 config, remove flake9 and use normal flake8 with own .flak…
Browse files Browse the repository at this point in the history
…e8 config file
  • Loading branch information
pmayd committed Apr 3, 2022
1 parent fefeb5d commit 80a5a8a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 51 deletions.
12 changes: 12 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
count = true
docstring-convention = "google"
exclude = ".git,__pycache__,docs,build,dist,.venv,.github"
filename = "*py"
ignore = "E4,E501"
max-complexity = 10
max-line-length = 80
require-plugins = "flake8-docstrings"
show-source = true
statistics = true
tee = true
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: poetry run pylint src --recursive=y
- name: Run bandit
run: poetry run bandit -r src
- name: Run saftey
- name: Run safety
run: poetry run safety check
- name: Run mypy
run: poetry run mypy src
Expand Down
55 changes: 19 additions & 36 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 1 addition & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ requests = "^2.27.1"
bandit = "^1.7.4"
black = "^22.3.0"
flake8-docstrings = "^1.6.0"
flake9 = "^3.8.3"
isort = "^5.10.1"
mypy = "^0.942"
pdoc3 = "^0.10.0"
Expand All @@ -21,24 +20,12 @@ pylint = "^2.13.4"
pytest = "^7.1.1"
pytest-cov = "^3.0.0"
safety = "^1.10.3"
flake8 = "^4.0.1"

[tool.black]
line-length = 80
target-version = ['py39']

[tool.flake8]
count = true
docstring-convention = "google"
exclude = ".git,__pycache__,docs,build,dist,.venv,.github"
filename = "*py"
ignore = "E4,E501"
max-complexity = 10
max-line-length = 80
require-plugins = "flake8-docstrings"
show-source = true
statistics = true
tee = true

[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

0 comments on commit 80a5a8a

Please sign in to comment.