Skip to content

Commit a7717d9

Browse files
authored
Run Autoformatters (#6335)
1 parent 7dcd3e7 commit a7717d9

14 files changed

+180
-177
lines changed

.bumpversion.cfg

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[bumpversion]
2-
current_version = 7, 0, 0, 'alpha', 2
2+
current_version = 7, 0, 0, "alpha", 2
33
commit = False
44
tag = False
5-
parse = (?P<major>\d+)\,\ (?P<minor>\d+)\,\ (?P<patch>\d+)\,\ \'(?P<release>\S+)\'\,\ (?P<build>\d+)
5+
parse = (?P<major>\d+)\,\ (?P<minor>\d+)\,\ (?P<patch>\d+)\,\ \"(?P<release>\S+)\"\,\ (?P<build>\d+)
66
serialize =
7-
{major}, {minor}, {patch}, '{release}', {build}
7+
{major}, {minor}, {patch}, "{release}", {build}
88

99
[bumpversion:part:release]
1010
optional_value = final

.eslintignore

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
lint-staged.config.js
2-
.eslintrc.js
3-
41
node_modules
52
**/build
63
**/lib

.github/workflows/buildutils.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ jobs:
3838
run: |
3939
# TODO: improve this with a mock package?
4040
# This step is to ensure the workflow always starts with a final version
41-
sed -i -E "s/VersionInfo\(.*\)/VersionInfo\(9, 8, 7, 'final', 0\)/" notebook/_version.py
42-
sed -i -E "s/current_version = .*/current_version = 9, 8, 7, 'final', 0/" .bumpversion.cfg
41+
sed -i -E 's/= VersionInfo\(.*\)/= VersionInfo\(9, 8, 7, "final", 0\)/' notebook/_version.py
42+
cat notebook/_version.py
43+
sed -i -E 's/current_version = .*/current_version = 9, 8, 7, "final", 0/' .bumpversion.cfg
44+
cat .bumpversion.cfg
4345
jlpm run lerna version 9.8.7 --no-push --force-publish --no-git-tag-version --yes
4446
git commit -am "Release 9.8.7"
4547

.pre-commit-config.yaml

+23-23
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ repos:
77
rev: v4.1.0
88
hooks:
99
- id: forbid-new-submodules
10-
# - id: end-of-file-fixer
11-
# - id: check-case-conflict
12-
# - id: check-executables-have-shebangs
13-
# - id: requirements-txt-fixer
14-
# - id: check-added-large-files
15-
# - id: check-case-conflict
16-
# - id: check-toml
17-
# - id: check-yaml
18-
# - id: debug-statements
19-
# - id: check-builtin-literals
20-
# - id: trailing-whitespace
21-
# exclude: .bumpversion.cfg
10+
- id: end-of-file-fixer
11+
- id: check-case-conflict
12+
- id: check-executables-have-shebangs
13+
- id: requirements-txt-fixer
14+
- id: check-added-large-files
15+
- id: check-case-conflict
16+
- id: check-toml
17+
- id: check-yaml
18+
- id: debug-statements
19+
- id: check-builtin-literals
20+
- id: trailing-whitespace
21+
exclude: .bumpversion.cfg
2222

23-
# - repo: https://github.com/psf/black
24-
# rev: 22.3.0
25-
# hooks:
26-
# - id: black
27-
# args: ["--line-length", "100"]
23+
- repo: https://github.com/psf/black
24+
rev: 22.3.0
25+
hooks:
26+
- id: black
27+
args: ["--line-length", "100"]
2828

29-
# - repo: https://github.com/PyCQA/isort
30-
# rev: 5.10.1
31-
# hooks:
32-
# - id: isort
33-
# files: \.py$
34-
# args: [--profile=black]
29+
- repo: https://github.com/PyCQA/isort
30+
rev: 5.10.1
31+
hooks:
32+
- id: isort
33+
files: \.py$
34+
args: [--profile=black]
3535

3636
# - repo: https://github.com/pycqa/flake8
3737
# rev: 4.0.1

docs/doc-requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
sphinx>=1.3.6
2-
pydata-sphinx-theme
1+
myst_parser
32
nbsphinx
3+
pydata-sphinx-theme
4+
sphinx>=1.3.6
45
sphinxcontrib_github_alt
5-
myst_parser

0 commit comments

Comments
 (0)