[damned-lies] chore: update flake8 configuration in setup.cfg
- From: Guillaume Bernard <gbernard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] chore: update flake8 configuration in setup.cfg
- Date: Fri, 25 Jun 2021 06:38:46 +0000 (UTC)
commit 519a8661a893c4d7721ce6a50738a77f93f5746e
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date: Fri Jun 25 08:10:40 2021 +0200
chore: update flake8 configuration in setup.cfg
.prospector.yml | 11 +++++++++++
setup.cfg | 17 +++++++++++++++++
2 files changed, 28 insertions(+)
---
diff --git a/.prospector.yml b/.prospector.yml
index 3610a686..7fa9b3ab 100644
--- a/.prospector.yml
+++ b/.prospector.yml
@@ -10,8 +10,11 @@ max-line-length: 119
ignore-paths:
- docs
+ - damnedlies
pylint:
+ options:
+ max-branches: 10
disable:
- unused-argument
- line-tool-long
@@ -25,3 +28,11 @@ pep8:
bandit:
run: true
+
+mccabe:
+ run: true
+ options:
+ max-complexity: 10
+
+pyroma:
+ run: true
diff --git a/setup.cfg b/setup.cfg
index 363de5d6..c0f0c590 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,4 +1,21 @@
[flake8]
+extend-ignore =
+ # Line break occurred before a binary operator
+ W503
+ # Line break occurred after a binary operator
+ W504
+ # MacCabe complexity is computed by prospector
+ C901
+exclude =
+ # Cache and project files
+ .git,
+ __pycache__,
+ # Django generated files
+ */migrations/*
+ # Sphinx documentation configuration
+ */docs/source/conf.py
+ # Damned Lies settings
+ damnedlies/settings*
max-line-length = 119
[coverage:run]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]