8000 [repo-helper] Configuration Update (#17) · python-formate/snippet-fmt@25925cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 25925cd

Browse files
[repo-helper] Configuration Update (#17)
* Updated files with 'repo_helper'. * Updated files with 'repo_helper'. Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent d571d1e commit 25925cd

File tree

7 files changed

+23
-12
lines changed

7 files changed

+23
-12
lines changed

.github/workflows/python_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "windows-2019"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.7'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.3'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38-click{7,8},build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39-click{7,8},build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
36-
- {python-version: "3.11.0-alpha.7", testenvs: "py311-dev-click{7,8},build", experimental: True}
36+
- {python-version: "3.11.0-beta.3", testenvs: "py311-dev-click{7,8},build", experimental: True}
3737

3838
steps:
3939
- name: Checkout 🛎️

.github/workflows/python_ci_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: "ubuntu-20.04"
2424
continue-on-error: ${{ matrix.config.experimental }}
2525
env:
26-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.7'
26+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.3'
2727< 8000 /td>

2828
strategy:
2929
fail-fast: False
@@ -34,7 +34,7 @@ jobs:
3434
- {python-version: "3.8", testenvs: "py38-click{7,8},build", experimental: False}
3535
- {python-version: "3.9", testenvs: "py39-click{7,8},build", experimental: False}
3636
- {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
37-
- {python-version: "3.11.0-alpha.7", testenvs: "py311-dev-click{7,8},build", experimental: True}
37+
- {python-version: "3.11.0-beta.3", testenvs: "py311-dev-click{7,8},build", experimental: True}
3838

3939
steps:
4040
- name: Checkout 🛎️

.github/workflows/python_ci_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "macos-latest"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.7'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.3'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38-click{7,8},build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39-click{7,8},build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
36-
- {python-version: "3.11.0-alpha.7", testenvs: "py311-dev-click{7,8},build", experimental: True}
36+
- {python-version: "3.11.0-beta.3", testenvs: "py311-dev-click{7,8},build", experimental: True}
3737

3838
steps:
3939
- name: Checkout 🛎️

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exclude: ^(tests/test_snippet_fmt_/.*\.rst|tests/example.rst)$
55

66
repos:
77
- repo: https://github.com/repo-helper/pyproject-parser
8-
rev: v0.4.3
8+
rev: v0.6.1
99
hooks:
1010
- id: reformat-pyproject
1111

@@ -40,7 +40,7 @@ repos:
4040
- id: bind-requirements
4141

4242
- repo: https://github.com/domdfcoding/flake8-dunder-all
43-
rev: v0.1.8
43+
rev: v0.2.1
4444
hooks:
4545
- id: ensure-dunder-all
4646
files: ^snippet_fmt/.*\.py$
@@ -67,7 +67,7 @@ repos:
6767
- --keep-runtime-typing
6868

6969
- repo: https://github.com/Lucas-C/pre-commit-hooks
70-
rev: v1.1.13
70+
rev: v1.2.0
7171
hooks:
7272
- id: remove-crlf
7373
- id: forbid-crlf

doc-source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
slug = re.sub(r'\W+', '-', project.lower())
2828
release = version = config.version
2929

30-
todo_include_todos = bool(os.environ.get("SHOW_TODOS", 0))
30+
sphinx_builder = os.environ.get("SPHINX_BUILDER", "html").lower()
31+
todo_include_todos = int(os.environ.get("SHOW_TODOS", 0)) and sphinx_builder != "latex"
3132

3233
intersphinx_mapping = {
3334
"python": ("https://docs.python.org/3/", None),

justfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ unused-imports:
1010
tox -e lint -- --select F401
1111

1212
incomplete-defs:
13-
#!/usr/bin/env bash
14-
tox -e mypy -- --disallow-incomplete-defs --disallow-untyped-defs | grep "Function is missing a .* annotation" || exit 0
13+
tox -e lint -- --select MAN
1514

1615
vdiff:
1716
git diff $(repo-helper show version -q)..HEAD

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# * testenv:docs
77
# * testenv:build
88
# * testenv:lint
9+
# * testenv:perflint
910
# * testenv:mypy
1011
# * testenv:pyup
1112
# * testenv:coverage
@@ -56,6 +57,7 @@ commands =
5657

5758
[testenv:docs]
5859
setenv = SHOW_TODOS = 1
60+
passenv = SPHINX_BUILDER
5961
basepython = python3.8
6062
changedir = {toxinidir}/doc-source
6163
deps = -r{toxinidir}/doc-source/requirements.txt
@@ -97,11 +99,20 @@ deps =
9799
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
98100
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
99101
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
102+
git+https://github.com/python-formate/flake8-missing-annotations.git
100103
pydocstyle>=6.0.0
101104
pygments>=2.7.1
102105
importlib_metadata<4.5.0; python_version<'3.8'
103106
commands = python3 -m flake8_rst_docstrings_sphinx snippet_fmt tests --allow-toolbox {posargs}
104107

108+
[testenv:perflint]
109+
basepython = python3.6
110+
changedir = {toxinidir}
111+
ignore_errors = True
112+
skip_install = True
113+
deps = perflint
114+
commands = python3 -m perflint snippet_fmt {posargs}
115+
105116
[testenv:mypy]
106117
basepython = python3.6
107118
ignore_errors = True

0 commit comments

Comments
 (0)
0