Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit05c0539

Browse files
committed
Add flake8 for linting
1 parentfcc4500 commit05c0539

File tree

4 files changed

+68
-3
lines changed

4 files changed

+68
-3
lines changed

‎.flake8‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[flake8]
2+
max-line-length = 88
3+
exclude =
4+
.git,
5+
__pycache__,
6+
.mypy_cache,
7+
.pytest_cache,
8+
.venv
9+
max-complexity = 10

‎.vscode/settings.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
"python.testing.unittestEnabled":false,
77
"python.testing.nosetestsEnabled":false,
88
"python.testing.pytestEnabled":true,
9-
"python.formatting.provider":"black"
9+
"python.formatting.provider":"black",
10+
"python.linting.flake8Enabled":true,
11+
"python.linting.enabled":true
1012
}

‎poetry.lock‎

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

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Js2Py = "^0.71"
2626
pytest-cov ="^2.12.0"
2727
black ="^21.5b1"
2828
isort ="^5.8.0"
29+
flake8 ="^3.9.2"
2930

3031
[tool.pytest.ini_options]
3132
minversion ="6.0"
@@ -40,7 +41,6 @@ branch = true
4041

4142
[tool.coverage.report]
4243
exclude_lines = [
43-
"# noqa",
4444
"raise NotImplementedError"
4545
]
4646
fail_under =50

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp