Skip to content

Commit

Permalink
FIX: Flake8 config
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderKaschta committed Feb 26, 2024
1 parent 59c8ee0 commit 4de767e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
exclude = build/*,.venv,venv
max-line-length = 128
statistics = True
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
python -m pip install --upgrade pip
pip install flake8
- name: Run linting
run: flake8 --count --show-source --statistics
run: flake8 --count --show-source --statistics --max-line-length=120
15 changes: 2 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "nanposweb"
description = ""
requires-python= ">=3.9"
license = {text = "MIT"}
version = "1.1.2"
version = "1.1.3"
dependencies = [
"Flask==2.2.3",
"Flask-SQLAlchemy",
Expand All @@ -22,15 +22,4 @@ dependencies = [
]

[project.optional-dependencies]
dev = ['flake8']

[tool.flake8]
max-line-length = 120
exclude = [
# No need to traverse our git directory
".git",
# There's no value in checking cache directories
"__pycache__",
# Build directories
"build/*"
]
dev = ['flake8']

0 comments on commit 4de767e

Please sign in to comment.