Skip to content

Commit 1912f94

Browse files
committed
Configure flake8
1 parent 4565e4e commit 1912f94

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

setup.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ python_requires = >=3.6
2323

2424
[tool:pytest]
2525
addopts =
26-
--pyargs docstring_to_makrdown
26+
--pyargs docstring_to_markdown
2727
--cov docstring_to_markdown
28+
--cov-fail-under=40
2829
--cov-report term-missing:skip-covered
2930
-p no:warnings
3031
--flake8
3132

33+
[flake8]
34+
max-line-length = 120
35+
max-complexity = 15

tests/test_rst.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@
7070

7171
RST_LINK_EXAMPLE = """To learn more about the frequency strings, please see `this link
7272
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__."""
73-
RST_LINK_EXAMPLE_MARKDOWN = """To learn more about the frequency strings, please see [this link](https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases)."""
73+
RST_LINK_EXAMPLE_MARKDOWN = (
74+
"To learn more about the frequency strings, please see"
75+
"[this link](https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases)."
76+
)
7477
RST_REF_EXAMPLE = """See :ref:`here <timeseries.offset_aliases>` for a list of frequency aliases."""
7578
RST_REF_MARKDOWN = """See here: `timeseries.offset_aliases` for a list of frequency aliases."""
7679

0 commit comments

Comments
 (0)