Skip to content

Commit b41b499

Browse files
authored
Merge branch 'main' into action-secrets
2 parents 2be9f19 + 2043ad3 commit b41b499

116 files changed

Lines changed: 479 additions & 260 deletions

File tree

Some content is hidden

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

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Please provide:
1212

1313
- The version of pip you used to install github3.py
1414

15-
- The version of github3.py, requests, uritemplate, and dateutil installed
15+
- The version of github3.py, requests, uritemplate, and python-dateutil installed
1616

1717
## Minimum Reproducible Example
1818

.github/workflows/docs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: Check documentation
3+
4+
"on":
5+
schedule:
6+
- cron: "0 1 * * *" # everyday at 1am
7+
push:
8+
paths:
9+
- "**.rst"
10+
- "docs/**"
11+
pull_request:
12+
paths:
13+
- "**.rst"
14+
- "docs/**"
15+
16+
jobs:
17+
docs:
18+
name: Build documentation & check links
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.11"
25+
26+
- name: Upgrade pip
27+
run: |
28+
pip install -U pip
29+
pip --version
30+
31+
- name: Install Tox
32+
run: |
33+
pip install tox
34+
tox --version
35+
36+
- name: Build documentation
37+
run: tox
38+
env:
39+
TOXENV: docs
40+
41+
- name: Upload documentation
42+
uses: actions/upload-artifact@v3
43+
with:
44+
name: docs
45+
path: docs/build

.pre-commit-config.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.6.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-toml
@@ -13,31 +13,33 @@ repos:
1313
- id: trailing-whitespace
1414
types: [text]
1515
stages: [commit, push, manual]
16-
- repo: https://github.com/asottile/reorder-python-imports
17-
rev: v3.10.0
16+
- repo: https://github.com/PyCQA/isort
17+
rev: 5.13.2
1818
hooks:
19-
- id: reorder-python-imports
20-
args: [--application-directories, '.:src', --py37-plus]
19+
- id: isort
2120
- repo: https://github.com/psf/black
22-
rev: 23.3.0
21+
rev: 24.4.0
2322
hooks:
2423
- id: black
2524
- repo: https://github.com/asottile/pyupgrade
26-
rev: v3.7.0
25+
rev: v3.15.2
2726
hooks:
2827
- id: pyupgrade
2928
args: [--py37-plus]
30-
#- repo: https://github.com/pre-commit/mirrors-mypy
31-
# rev: v0.910
32-
# hooks:
33-
# - id: mypy
34-
# exclude: ^(docs/|tests/)
29+
- repo: https://github.com/pre-commit/mirrors-mypy
30+
rev: v1.9.0
31+
hooks:
32+
- id: mypy
33+
additional_dependencies:
34+
- types-python-dateutil
35+
- types-requests
36+
exclude: ^(docs/|tests/)
3537
- repo: https://github.com/jorisroovers/gitlint
3638
rev: v0.19.1
3739
hooks:
3840
- id: gitlint
3941
- repo: https://github.com/asottile/setup-cfg-fmt
40-
rev: v2.3.0
42+
rev: v2.5.0
4143
hooks:
4244
- id: setup-cfg-fmt
4345
args: [--min-py3-version, '3.7']

.readthedocs.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
build:
3+
os: ubuntu-22.04
4+
tools:
5+
python: "3.11"
6+
sphinx:
7+
configuration: docs/source/conf.py
8+
formats: all
9+
python:
10+
install:
11+
- requirements: docs/source/requirements.txt
12+
- path: .

AUTHORS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,5 @@ Contributors
224224
- Chris R (@offbyone)
225225

226226
- Thomas Buchner (@MrBatschner)
227+
228+
- Chris Cotter (@ccotter)

docs/source/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
sphinx>=4.2.0
22
docutils!=0.18
3+
sphinx_rtd_theme

pyproject.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ Source = "https://github.com/sigmavirus24/github3.py"
7070
[tool.black]
7171
line-length = 78
7272
target-version = ['py37']
73-
safe = true
7473
exclude = '''
7574
(
7675
/(
@@ -83,6 +82,19 @@ exclude = '''
8382
| _build
8483
| build
8584
| dist
85+
| venv
8686
)/
8787
)
8888
'''
89+
90+
[tool.mypy]
91+
files = ["."]
92+
exclude = [
93+
"^docs/",
94+
"^tests/",
95+
]
96+
97+
[tool.isort]
98+
profile = "black"
99+
line_length = 78
100+
force_single_line = true

src/github3/__about__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The module that holds much of the metadata about github3.py."""
2+
23
__package_name__ = "github3.py"
34
__title__ = "github3"
45
__author__ = "Ian Stapleton Cordasco"

src/github3/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:license: Modified BSD, see LICENSE for more details
99
1010
"""
11+
1112
from .__about__ import __author__
1213
from .__about__ import __author_email__
1314
from .__about__ import __copyright__

src/github3/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
:license: Modified BSD, see LICENSE for more details
77
88
"""
9+
910
from .github import GitHub
1011
from .github import GitHubEnterprise
1112

0 commit comments

Comments
 (0)