Skip to content

Commit 7412cb2

Browse files
committed
Move flake8 config to .flake8
1 parent 40aea83 commit 7412cb2

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.flake8

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[flake8]
2+
max-line-length = 88
3+
select =
4+
# flake8 default
5+
D, E, F, W,
6+
ignore =
7+
# flake8 default
8+
E121,E123,E126,E226,E24,E704,W503,W504,
9+
# pydocstyle
10+
D100, D101, D102, D103, D104, D105, D106,
11+
D200, D202, D204, D205,
12+
D301,
13+
D400, D401, D403, D404
14+
# ignored by pydocstyle numpy docstring convention
15+
D107, D203, D212, D213, D402, D413, D415, D416, D417,
16+
17+
exclude =
18+
.git
19+
build
20+
# External files.
21+
.tox
22+
.eggs
23+
24+
per-file-ignores =
25+
setup.py: E402
26+
force-check = True

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
run: |
3232
set -o pipefail
33-
flake8 --max-line-length 88 cycler | \
33+
flake8 | \
3434
reviewdog -f=pep8 -name=flake8 \
3535
-tee -reporter=github-check -filter-mode nofilter

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
author='Thomas A Caswell',
66
author_email='matplotlib-users@python.org',
77
packages=find_packages(),
8-
package_data = {"cycler": ["py.typed"]},
8+
package_data={"cycler": ["py.typed"]},
99
description='Composable style cycles',
1010
url='https://github.com/matplotlib/cycler',
1111
platforms='Cross platform (Linux, macOS, Windows)',

0 commit comments

Comments
 (0)