Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs_test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: "actions/checkout@v4"

- name: Install and Build πŸ”§
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1-py39

with:
pre-build-command: python -m pip install tox
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:
jobs:
Run:
name: "Flake8"
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"

steps:
- name: Checkout πŸ›ŽοΈ
Expand All @@ -35,7 +35,7 @@ jobs:
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
python-version: "3.9"

- name: Install dependencies πŸ”§
if: steps.changes.outputs.code == 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
os: ['ubuntu-20.04', 'windows-2019']
os: ['ubuntu-22.04', 'windows-2022']
fail-fast: false

steps:
Expand All @@ -40,7 +40,7 @@ jobs:
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
python-version: "3.9"

- name: Install dependencies πŸ”§
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ permissions:

jobs:
tests:
name: "windows-2019 / Python ${{ matrix.config.python-version }}"
runs-on: "windows-2019"
name: "windows-2022 / Python ${{ matrix.config.python-version }}"
runs-on: "windows-2022"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.8'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ permissions:

jobs:
tests:
name: "ubuntu-20.04 / Python ${{ matrix.config.python-version }}"
runs-on: "ubuntu-20.04"
name: "ubuntu-22.04 / Python ${{ matrix.config.python-version }}"
runs-on: "ubuntu-22.04"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.8'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ permissions:

jobs:
tests:
name: "macos-13 / Python ${{ matrix.config.python-version }}"
runs-on: "macos-13"
name: "macos-${{ matrix.config.os-ver }} / Python ${{ matrix.config.python-version }}"
runs-on: "macos-${{ matrix.config.os-ver }}"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.8'
Expand All @@ -28,7 +28,7 @@ jobs:
fail-fast: False
matrix:
config:
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.8", os-ver: "14", testenvs: "py38,build", experimental: False}

steps:
- name: Checkout πŸ›ŽοΈ
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:

repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.11.1
rev: v0.13.0
hooks:
- id: reformat-pyproject

Expand Down Expand Up @@ -43,7 +43,7 @@ repos:
- id: bind-requirements

- repo: https://github.com/python-formate/flake8-dunder-all
rev: v0.4.1
rev: v0.5.0
hooks:
- id: ensure-dunder-all
files: ^contributing/.*\.py$
Expand All @@ -62,11 +62,11 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
rev: v3.3.0
hooks:
- id: pyupgrade
args:
- --py36-plus
- --py38-plus
- --keep-runtime-typing

- repo: https://github.com/Lucas-C/pre-commit-hooks
Expand All @@ -81,7 +81,7 @@ repos:
- id: snippet-fmt

- repo: https://github.com/python-formate/formate
rev: v0.7.0
rev: v0.8.0
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ python:
- requirements: requirements.txt
- requirements: doc-source/requirements.txt
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: '3.9'
jobs:
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Contributing Guide

.. start short_desc

**Contributing guide for repo-helper and associated projects**
**Contributing guide for projects in the python-formate organization**

.. end short_desc

View online at https://contributing.repo-helper.uk
View online at https://contributing-to-formate.readthedocs.io/
2 changes: 1 addition & 1 deletion contributing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# __init__.py
"""
Contributing guide for repo-helper and associated projects.
Contributing guide for projects in the python-formate organization.
"""
#
# Copyright Β© 2020-2021 Dominic Davis-Foster <dominic@davis-foster.co.uk>
Expand Down
1 change: 1 addition & 0 deletions doc-source/_templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
{% extends "!base.html" %}
{% block extrahead %}
<link href="{{ pathto("_static/style.css", True) }}" rel="stylesheet" type="text/css">
<link rel=icon href=https://python-formate.github.io/assets/formate.ico sizes="48x48" type="image/vnd.microsoft.icon">
{% endblock %}
3 changes: 2 additions & 1 deletion doc-source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,5 @@ def setup(app):
nitpicky = True
del version
del release
html_title = "repo-helper Contributing Guide"
html_title = "formate Contributing Guide"
html_logo = "formate.png"
Binary file added doc-source/formate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc-source/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ With bash:

.. code-block:: bash

(repo-helper) $
(formate) $


.. _GitHub: https://github.com/
Expand Down
2 changes: 2 additions & 0 deletions doc-source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
default-values>=0.6.0
docutils<0.22
extras-require>=0.5.0
furo==2021.06.18b36
html-section>=0.3.0
roman>=4.0
seed-intersphinx-mapping>=1.2.2
sphinx>=3.0.3
sphinx-copybutton>=0.2.12
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "whey"
[project]
name = "contributing"
version = "2021.0.0"
description = "Contributing guide for repo-helper and associated projects"
description = "Contributing guide for projects in the python-formate organization"
readme = "README.rst"
keywords = []
dynamic = [ "requires-python", "classifiers", "dependencies",]
Expand All @@ -18,10 +18,10 @@ name = "Dominic Davis-Foster"
email = "dominic@davis-foster.co.uk"

[project.urls]
Homepage = "https://github.com/repo-helper/contributing"
"Issue Tracker" = "https://github.com/repo-helper/contributing/issues"
"Source Code" = "https://github.com/repo-helper/contributing"
Documentation = "https://contributing.repo-helper.uk"
Homepage = "https://github.com/python-formate/contributing"
"Issue Tracker" = "https://github.com/python-formate/contributing/issues"
"Source Code" = "https://github.com/python-formate/contributing"
Documentation = "https://contributing-to-formate.readthedocs.io"

[tool.whey]
base-classifiers = []
Expand All @@ -33,7 +33,7 @@ license-key = "MIT"
[tool.importcheck]

[tool.sphinx-pyproject]
github_username = "repo-helper"
github_username = "python-formate"
github_repository = "contributing"
author = "Dominic Davis-Foster"
project = "contributing"
Expand Down Expand Up @@ -111,7 +111,7 @@ autodoc_exclude_members = [
]

[tool.mypy]
python_version = "3.8"
python_version = "3.9"
namespace_packages = true
check_untyped_defs = true
warn_unused_ignores = true
Expand Down
11 changes: 7 additions & 4 deletions repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ modname: 'contributing'
copyright_years: '2020-2021'
author: 'Dominic Davis-Foster'
email: 'dominic@davis-foster.co.uk'
username: 'repo-helper'
username: 'python-formate'
assignee: 'domdfcoding'
version: '2021.0.0'
license: 'MIT'
short_desc: 'Contributing guide for repo-helper and associated projects'
short_desc: 'Contributing guide for projects in the python-formate organization'

use_whey: True
docs_fail_on_warning: true
sphinx_html_theme: furo
enable_tests: false
enable_conda: false
on_pypi: false
docs_url: https://contributing.repo-helper.uk
docs_url: https://contributing-to-formate.readthedocs.io

python_versions:
- '3.8'
Expand All @@ -25,7 +25,8 @@ sphinx_conf_epilogue:
- nitpicky = True
- del version
- del release
- html_title = "repo-helper Contributing Guide"
- html_title = "formate Contributing Guide"
- html_logo = "formate.png"

extra_sphinx_extensions:
- html_section
Expand All @@ -34,3 +35,5 @@ exclude_files:
- contributing
- Source_rst
- license_rst

preserve_custom_theme: true
15 changes: 8 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ setenv =
[testenv:docs]
setenv = SHOW_TODOS = 1
passenv = SPHINX_BUILDER
basepython = python3.8
basepython = python3.9
changedir = {toxinidir}/doc-source
deps = -r{toxinidir}/doc-source/requirements.txt
commands = sphinx-build -M {env:SPHINX_BUILDER:html} . ./build {posargs}
Expand All @@ -74,7 +74,7 @@ commands =
check-wheel-contents dist/

[testenv:lint]
basepython = python3.8
basepython = python3.9
changedir = {toxinidir}
ignore_errors = True
skip_install = True
Expand All @@ -94,32 +94,33 @@ deps =
flake8-sphinx-links>=0.0.4
flake8-strftime>=0.1.1
flake8-typing-imports>=1.10.0
git+https://github.com/domdfcoding/restructuredtext-lint.git@fix-deprecations
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
git+https://github.com/python-formate/flake8-missing-annotations.git
pydocstyle>=6.0.0
git+https://github.com/domdfcoding/pydocstyle.git@stub-functions
pygments>=2.7.1
importlib_metadata<4.5.0; python_version<'3.8'
commands = python3 -m flake8_rst_docstrings_sphinx contributing --allow-toolbox {posargs}

[testenv:perflint]
basepython = python3.8
basepython = python3.9
changedir = {toxinidir}
ignore_errors = True
skip_install = True
deps = perflint
commands = python3 -m perflint contributing {posargs}

[testenv:mypy]
basepython = python3.8
basepython = python3.9
ignore_errors = True
changedir = {toxinidir}
deps = mypy==0.971
deps = mypy==1.17.1
commands = mypy contributing {posargs}

[testenv:pyup]
basepython = python3.8
basepython = python3.9
skip_install = True
ignore_errors = True
changedir = {toxinidir}
Expand Down