Skip to content

Commit 0c19e1e

Browse files
committed
Extract flake8 from pre-commit.
1 parent 819103c commit 0c19e1e

File tree

5 files changed

+70
-5
lines changed

5 files changed

+70
-5
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[flake8]
22
max-line-length = 88
3+
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,node_modules,site

.pre-commit-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@ repos:
2323
rev: 1.19.1
2424
hooks:
2525
- id: prettier
26-
- repo: https://github.com/PyCQA/flake8
27-
rev: 3.7.9
28-
hooks:
29-
- id: flake8

poetry.lock

Lines changed: 67 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mkdocs-material = "^4.6.0"
1212
[tool.poetry.dev-dependencies]
1313
dependencies = "^0.15"
1414
django = "^3.0.2"
15+
flake8 = "^3.7.9"
1516
invoke = "^1.4.0"
1617
pre-commit = "^1.21.0"
1718
stories = "^0.10.1"

tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
def lint(c):
66
c.run("poetry run pre-commit run -a")
77
c.run("poetry run python -m mddoctest")
8+
c.run("poetry run flake8 .")
89
c.run("poetry run yamllint --strict .")
910
c.run("npm run lint:css")
1011
c.run("npm run lint:js")

0 commit comments

Comments
 (0)