-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'V3/develop' into hyperlink-and-header
- Loading branch information
Showing
1,158 changed files
with
230,097 additions
and
143,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Since version 2.23 (released in August 2019), git-blame has a feature | ||
# to ignore or bypass certain commits. | ||
# | ||
# This file contains a list of commits that are not likely what you | ||
# are looking for in a blame, such as mass reformatting or renaming. | ||
# You can set this file as a default ignore file for blame by running | ||
# the following command. | ||
# | ||
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs | ||
|
||
# [V3] Update code standards (black code format pass) (#1650) | ||
b88b5a2601f56bda985729352d24842f087a8ade | ||
|
||
# Black tests and setup.py (#1657) | ||
e01cdbb0912387749d9459e1d934f9ed393a9b51 | ||
|
||
# Black formatting for generate_strings.py and docs/conf.py (#1658) | ||
1ecaf6f8d5f2af731bec3eb6ad3a9721ab7a2812 | ||
|
||
# [V3 Travis] Update travis to not skip pipfile lock... (#1678) | ||
# additional black formatting pass to conform to black 18.5b | ||
d3f406a34a5cae6ea63664e76e8e74be43f9949f | ||
|
||
# [V3] Update black version and reformat (#1745) | ||
14cc701b25cea385fd0d537cdb6475d341c017c5 | ||
|
||
# [V3] Clean up some ugly auto-formatted strings (#1753) | ||
622382f42588ac1d8a52bd3e39bf171c89ff0224 | ||
|
||
# [CI] Improve automated checks (#2702) | ||
16443c8cc0c24cbc5b3dc7de858edb71b9ca6cd3 | ||
|
||
# Bump black to 20.8b1 (and reformat) (#4371) | ||
85afe19455f91af21a0f603705eeb5d9599b45cc | ||
|
||
# Reformat with Black 22.1.0 (#5633) | ||
c69e8d31fdadbe10230ec0ea2ef35402e5c4cf43 | ||
|
||
# Reformat with Black 2023 formatting changes | ||
226d8d734de43e1d5ea96a528a8e480641604db1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,11 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- run: "python -m pip install git+https://github.com/pycqa/pyflakes@1911c20#egg=pyflakes git+https://github.com/pycqa/pycodestyle@d219c68#egg=pycodestyle git+https://github.com/pycqa/[email protected]#egg=flake8" | ||
- run: > | ||
python -m pip install | ||
'pyflakes @ https://github.com/pycqa/pyflakes/tarball/1911c20' | ||
'pycodestyle @ https://github.com/pycqa/pycodestyle/tarball/d219c68' | ||
'flake8 @ https://github.com/pycqa/flake8/tarball/3.7.9' | ||
name: Install Flake8 | ||
- run: "python -m flake8 . --count --select=E9,F7,F82 --show-source" | ||
name: Flake8 Linting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Publish Release | |
on: | ||
push: | ||
tags: | ||
- "*" | ||
- "3.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
release_information: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,45 @@ | ||
import os | ||
import re | ||
import shutil | ||
import subprocess | ||
import sys | ||
from pathlib import Path | ||
|
||
|
||
EXCLUDE_STEM_RE = re.compile(r".*-3\.(?!8-)(\d+)-extra-(doc|style)") | ||
GITHUB_OUTPUT = os.environ["GITHUB_OUTPUT"] | ||
REQUIREMENTS_FOLDER = Path(__file__).parents[3].absolute() / "requirements" | ||
os.chdir(REQUIREMENTS_FOLDER) | ||
|
||
|
||
def pip_compile(name: str) -> None: | ||
def pip_compile(version: str, name: str) -> None: | ||
stem = f"{sys.platform}-{version}-{name}" | ||
if EXCLUDE_STEM_RE.fullmatch(stem): | ||
return | ||
|
||
executable = ("py", f"-{version}") if sys.platform == "win32" else (f"python{version}",) | ||
subprocess.check_call( | ||
( | ||
sys.executable, | ||
*executable, | ||
"-m", | ||
"piptools", | ||
"compile", | ||
"--upgrade", | ||
"--resolver=backtracking", | ||
"--verbose", | ||
f"{name}.in", | ||
"--output-file", | ||
f"{sys.platform}-{name}.txt", | ||
f"{stem}.txt", | ||
) | ||
) | ||
|
||
|
||
pip_compile("base") | ||
shutil.copyfile(f"{sys.platform}-base.txt", "base.txt") | ||
for file in REQUIREMENTS_FOLDER.glob("extra-*.in"): | ||
pip_compile(file.stem) | ||
for minor in range(8, 11 + 1): | ||
version = f"3.{minor}" | ||
pip_compile(version, "base") | ||
shutil.copyfile(f"{sys.platform}-{version}-base.txt", "base.txt") | ||
for file in REQUIREMENTS_FOLDER.glob("extra-*.in"): | ||
pip_compile(version, file.stem) | ||
|
||
with open(GITHUB_OUTPUT, "a", encoding="utf-8") as fp: | ||
fp.write(f"sys_platform={sys.platform}\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.