Skip to content

Commit bc94317

Browse files
committed
Update flake8 config in tox.ini
1 parent 9de19aa commit bc94317

File tree

129 files changed

+387
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+387
-258
lines changed

repo_helper/files/testing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,12 @@ def testenv_lint(self):
307307
"git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf",
308308
"git+https://github.com/domdfcoding/flake8-quotes.git",
309309
"git+https://github.com/domdfcoding/flake8-rst-docstrings.git",
310-
"git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git",
310+
"git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2",
311+
"git+https://github.com/domdfcoding/flake8-github-actions",
311312
"pygments>=2.7.1",
312313
])
313314
# cmd = f"flake8 {' '.join(self.get_source_files())} --format=rst-toolbox"
314-
cmd = f"python3 -m flake8_rst_docstrings_sphinx {' '.join(self.get_source_files())} --allow-toolbox"
315+
cmd = f"python3 -m flake8_rst_docstrings_sphinx {' '.join(self.get_source_files())} --allow-toolbox {{posargs}}"
315316
self._ini["testenv:lint"]["commands"] = cmd
316317

317318
def testenv_mypy(self):

tests/test_files/test_testing_/test_make_tox_py_modules0_0_782_mypy_deps0__no_stubs_devmode_docs_.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ deps =
8181
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
8282
git+https://github.com/domdfcoding/flake8-quotes.git
8383
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
84-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
84+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
85+
git+https://github.com/domdfcoding/flake8-github-actions
8586
pygments>=2.7.1
86-
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox
87+
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox {posargs}
8788

8889
[testenv:mypy]
8990
basepython = python3.6

tests/test_files/test_testing_/test_make_tox_py_modules0_0_782_mypy_deps0__no_stubs_devmode_no_docs_.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ deps =
7272
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
7373
git+https://github.com/domdfcoding/flake8-quotes.git
7474
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
75-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
75+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
76+
git+https://github.com/domdfcoding/flake8-github-actions
7677
pygments>=2.7.1
77-
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox
78+
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox {posargs}
7879

7980
[testenv:mypy]
8081
basepython = python3.6

tests/test_files/test_testing_/test_make_tox_py_modules0_0_782_mypy_deps0__no_stubs_no_devmode_docs_.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ deps =
7979
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
8080
git+https://github.com/domdfcoding/flake8-quotes.git
8181
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
82-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
82+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
83+
git+https://github.com/domdfcoding/flake8-github-actions
8384
pygments>=2.7.1
84-
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox
85+
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox {posargs}
8586

8687
[testenv:mypy]
8788
basepython = python3.6

tests/test_files/test_testing_/test_make_tox_py_modules0_0_782_mypy_deps0__no_stubs_no_devmode_no_docs_.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ deps =
7070
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
7171
git+https://github.com/domdfcoding/flake8-quotes.git
7272
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
73-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
73+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
74+
git+https://github.com/domdfcoding/flake8-github-actions
7475
pygments>=2.7.1
75-
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox
76+
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox {posargs}
7677

7778
[testenv:mypy]
7879
basepython = python3.6

tests/test_files/test_testing_/test_make_tox_py_modules0_0_782_mypy_deps0__stubs_devmode_docs_.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ deps =
8181
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
8282
git+https://github.com/domdfcoding/flake8-quotes.git
8383
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
84-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
84+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
85+
git+https://github.com/domdfcoding/flake8-github-actions
8586
pygments>=2.7.1
86-
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox
87+
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox {posargs}
8788

8889
[testenv:mypy]
8990
basepython = python3.6

tests/test_files/test_testing_/test_make_tox_py_modules0_0_782_mypy_deps0__stubs_devmode_no_docs_.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ deps =
7272
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
7373
git+https://github.com/domdfcoding/flake8-quotes.git
7474
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
75-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
75+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
76+
git+https://github.com/domdfcoding/flake8-github-actions
7677
pygments>=2.7.1
77-
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox
78+
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox {posargs}
7879

7980
[testenv:mypy]
8081
basepython = python3.6

tests/test_files/test_testing_/test_make_tox_py_modules0_0_782_mypy_deps0__stubs_no_devmode_docs_.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ deps =
7979
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
8080
git+https://github.com/domdfcoding/flake8-quotes.git
8181
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
82-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
82+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
83+
git+https://github.com/domdfcoding/flake8-github-actions
8384
pygments>=2.7.1
84-
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox
85+
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox {posargs}
8586

8687
[testenv:mypy]
8788
basepython = python3.6

tests/test_files/test_testing_/test_make_tox_py_modules0_0_782_mypy_deps0__stubs_no_devmode_no_docs_.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ deps =
7070
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
7171
git+https://github.com/domdfcoding/flake8-quotes.git
7272
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
73-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
73+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
74+
git+https://github.com/domdfcoding/flake8-github-actions
7475
pygments>=2.7.1
75-
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox
76+
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox {posargs}
7677

7778
[testenv:mypy]
7879
basepython = python3.6

tests/test_files/test_testing_/test_make_tox_py_modules0_0_782_mypy_deps0_extra_a_no_stubs_devmode_docs_.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ deps =
8383
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
8484
git+https://github.com/domdfcoding/flake8-quotes.git
8585
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
86-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
86+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
87+
git+https://github.com/domdfcoding/flake8-github-actions
8788
pygments>=2.7.1
88-
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox
89+
commands = python3 -m flake8_rst_docstrings_sphinx hello_world.py tests --allow-toolbox {posargs}
8990

9091
[testenv:mypy]
9192
basepython = python3.6

0 commit comments

Comments
 (0)