Skip to content

Commit 16d2393

Browse files
Updated files with 'repo_helper'. (#10)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 61221af commit 16d2393

File tree

7 files changed

+30
-28
lines changed

7 files changed

+30
-28
lines changed

.github/workflows/octocheese.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ jobs:
1616
pypi_name: "domdf_python_tools"
1717
env:
1818
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
19+
if: startsWith(github.ref, 'refs/tags/') != true

.isort.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ known_third_party =
2323
github
2424
importlib_metadata
2525
importlib_resources
26+
natsort
2627
packaging
2728
pandas
2829
pydash

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ repos:
4444
rev: v1.7.0
4545
hooks:
4646
- id: python-no-eval
47+
- id: rst-backticks
48+
- id: rst-directive-colons
49+
- id: rst-inline-touching-normal
4750

4851
- repo: https://github.com/asottile/pyupgrade
4952
rev: v2.7.4

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ domdf_python_tools
2828
- |license| |language| |requires| |pre_commit|
2929

3030
.. |docs| image:: https://img.shields.io/readthedocs/domdf_python_tools/latest?logo=read-the-docs
31-
:target: https://domdf_python_tools.readthedocs.io/en/latest/?badge=latest
31+
:target: https://domdf_python_tools.readthedocs.io/en/latest
3232
:alt: Documentation Build Status
3333

3434
.. |docs_check| image:: https://github.com/domdfcoding/domdf_python_tools/workflows/Docs%20Check/badge.svg

doc-source/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@
6161
templates_path = ["_templates"]
6262
html_static_path = ["_static"]
6363
source_suffix = ".rst"
64-
exclude_patterns = []
65-
6664
master_doc = "index"
6765
suppress_warnings = ["image.nonlocal_uri"]
6866
pygments_style = "default"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ long_description_content_type = text/x-rst
1717
platforms = Windows, macOS, Linux
1818
url = https://github.com/domdfcoding/domdf_python_tools
1919
project_urls =
20-
Documentation = https://domdf_python_tools.readthedocs.io
20+
Documentation = https://domdf_python_tools.readthedocs.io/en/latest
2121
Issue_Tracker = https://github.com/domdfcoding/domdf_python_tools/issues
2222
Source_Code = https://github.com/domdfcoding/domdf_python_tools
2323
classifiers =

tox.ini

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# * testenv:mypy
1010
# * testenv:pyup
1111
# * testenv:coverage
12-
# * flake8
1312
# * coverage:run
1413
# * coverage:report
1514
# * check-wheel-contents
@@ -68,6 +67,7 @@ deps =
6867
flake8-builtins>=1.5.3
6968
flake8-docstrings>=1.5.0
7069
flake8-dunder-all>=0.1.1
70+
flake8-github-actions>=0.1.0
7171
flake8-pyi>=20.10.0
7272
flake8-pytest-style>=1.3.0
7373
flake8-sphinx-links>=0.0.4
@@ -77,7 +77,6 @@ deps =
7777
git+https://github.com/domdfcoding/flake8-quotes.git
7878
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
7979
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
80-
git+https://github.com/domdfcoding/flake8-github-actions
8180
pygments>=2.7.1
8281
commands = python3 -m flake8_rst_docstrings_sphinx domdf_python_tools tests --allow-toolbox {posargs}
8382

@@ -117,28 +116,6 @@ commands =
117116
coverage html
118117
/bin/bash -c "DISPLAY=:0 firefox 'htmlcov/index.html'"
119118

120-
[flake8]
121-
max-line-length = 120
122-
select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 W292 E265 E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 E302 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
123-
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py,.tox,venv
124-
rst-directives =
125-
TODO
126-
envvar
127-
extras-require
128-
rst-roles = manpage
129-
per-file-ignores =
130-
tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
131-
*/*.pyi: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
132-
tests/list_tests.py: PT011 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
133-
tests/test_paths_stdlib.py: PT011 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
134-
tests/test_pretty_print.py: PT011 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
135-
tests/seq_tests.py: PT011 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
136-
pytest-parametrize-names-type = csv
137-
inline-quotes = "
138-
multiline-quotes = """
139-
docstring-quotes = """
140-
count = True
141-
142119
[coverage:run]
143120
plugins = coverage_pyver_pragma
144121

@@ -161,6 +138,28 @@ package = domdf_python_tools
161138
addopts = --color yes --durations 25
162139
timeout = 300
163140

141+
[flake8]
142+
max-line-length = 120
143+
select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 W292 E265 E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 E302 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
144+
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py,.tox,venv
145+
rst-directives =
146+
TODO
147+
envvar
148+
extras-require
149+
rst-roles = manpage
150+
per-file-ignores =
151+
tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
152+
*/*.pyi: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
153+
tests/list_tests.py: PT011 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
154+
tests/test_paths_stdlib.py: PT011 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
155+
tests/test_pretty_print.py: PT011 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
156+
tests/seq_tests.py: PT011 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
157+
pytest-parametrize-names-type = csv
158+
inline-quotes = "
159+
multiline-quotes = """
160+
docstring-quotes = """
161+
count = True
162+
164163
[testenv]
165164
setenv =
166165
PIP_USE_FEATURE = 2020-resolver

0 commit comments

Comments
 (0)