Skip to content

Commit 52164aa

Browse files
[repo-helper] Configuration Update (#26)
* 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 d97004e commit 52164aa

File tree

11 files changed

+75
-68
lines changed

11 files changed

+75
-68
lines changed

.github/actions_build_conda.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/actions_deploy_conda.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/stale.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ daysUntilStale: 180
77

88
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
99
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
10-
daysUntilClose: 180
10+
daysUntilClose: false
1111

1212
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
1313
onlyLabels: []
@@ -31,10 +31,10 @@ exemptAssignees: false
3131
staleLabel: stale
3232

3333
# Comment to post when marking as stale. Set to `false` to disable
34-
markComment: >
35-
This issue has been automatically marked as stale because it has not had
36-
recent activity. It will be closed if no further activity occurs. Thank you
37-
for your contributions.
34+
markComment: false
35+
# This issue has been automatically marked as stale because it has not had
36+
# recent activity. It will be closed if no further activity occurs. Thank you
37+
# for your contributions.
3838

3939
# Comment to post when removing the stale label.
4040
# unmarkComment: >

.github/workflows/conda_ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
python -m pip install --upgrade pip setuptools wheel
4040
python -m pip install --upgrade "whey-conda" "whey"
4141
# $CONDA is an environment variable pointing to the root of the miniconda directory
42+
$CONDA/bin/conda update -n base conda
4243
$CONDA/bin/conda config --add channels conda-forge
4344
$CONDA/bin/conda config --add channels domdfcoding
4445

.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.5,pypy-3.6,pypy-3.7,pypy-3.8'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.7,pypy-3.6,pypy-3.7,pypy-3.8'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11.0-alpha.5", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11.0-alpha.7", testenvs: "py311-dev,build", experimental: True}
3737
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3838
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3939
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}

.github/workflows/python_ci_linux.yml

Lines changed: 34 additions & 10 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.5,pypy-3.6,pypy-3.7,pypy-3.8'
26+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.7,pypy-3.6,pypy-3.7,pypy-3.8'
2727

2828
strategy:
2929
fail-fast: False
@@ -34,7 +34,7 @@ jobs:
3434
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3535
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3636
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
37-
- {python-version: "3.11.0-alpha.5", testenvs: "py311-dev,build", experimental: True}
37+
- {python-version: "3.11.0-alpha.7", testenvs: "py311-dev,build", experimental: True}
3838
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3939
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
4040
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
@@ -187,22 +187,46 @@ jobs:
187187
with:
188188
python-version: 3.8
189189

190+
- name: Setup Conda
191+
uses: conda-incubator/setup-miniconda@v2
192+
with:
193+
activate-environment: env
194+
conda-build-version: 3.21.0
195+
190196
- name: Install dependencies 🔧
191197
run: |
198+
python -VV
199+
python -m site
192200
python -m pip install --upgrade pip setuptools wheel
193201
python -m pip install --upgrade "mkrecipe" "whey"
202+
# $CONDA is an environment variable pointing to the root of the miniconda directory
203+
$CONDA/bin/conda config --set always_yes yes --set changeps1 no
204+
$CONDA/bin/conda update -n base conda
205+
$CONDA/bin/conda info -a
206+
$CONDA/bin/conda config --add channels conda-forge
207+
$CONDA/bin/conda config --add channels domdfcoding
194208
195-
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh -O miniconda.sh
196-
bash miniconda.sh -b -p $HOME/miniconda
209+
$CONDA/bin/conda config --remove channels defaults
197210
198-
- name: Build Conda 📦
211+
- name: Build Conda Package 📦
199212
run: |
200-
chmod +x .github/actions_build_conda.sh
201-
bash .github/actions_build_conda.sh
213+
python -m mkrecipe --type wheel || exit 1
214+
$CONDA/bin/conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist
202215
203-
- name: Deploy Conda 🚀
216+
- name: Deploy Conda Package 🚀
217+
if: startsWith(github.ref, 'refs/tags/')
204218
run: |
205-
chmod +x .github/actions_deploy_conda.sh
206-
bash .github/actions_deploy_conda.sh
219+
$CONDA/bin/conda config --set always_yes yes --set changeps1 no
220+
$CONDA/bin/conda install anaconda-client
221+
$CONDA/bin/conda info -a
222+
223+
for f in conda/dist/noarch/flake8-slots-*.tar.bz2; do
224+
[ -e "$f" ] || continue
225+
echo "$f"
226+
conda install "$f" || exit 1
227+
echo "Deploying to Anaconda.org..."
228+
$CONDA/bin/anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1
229+
echo "Successfully deployed to Anaconda.org."
230+
done
207231
env:
208232
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

.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.5,pypy-3.7,pypy-3.8'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.7,pypy-3.7,pypy-3.8'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11.0-alpha.5", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11.0-alpha.7", testenvs: "py311-dev,build", experimental: True}
3737
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3838
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
3939

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exclude: ^$
55

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

@@ -67,7 +67,7 @@ repos:
6767
- --keep-runtime-typing
6868

6969
- repo: https://github.com/Lucas-C/pre-commit-hooks
70-
rev: v1.1.11
70+
rev: v1.1.13
7171
hooks:
7272
- id: remove-crlf
7373
- id: forbid-crlf
@@ -78,7 +78,7 @@ repos:
7878
- id: snippet-fmt
7979

8080
- repo: https://github.com/python-formate/formate
81-
rev: v0.4.9
81+
rev: v0.4.10
8282
hooks:
8383
- id: formate
8484
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$

doc-source/_static/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ div.versionchanged ul, div.versionremoved ul {
1313
margin-left: 20px;
1414
margin-top: 0;
1515
}
16+
17+
.longtable.autosummary {
18+
width: 100%;
19+
}

justfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
default: lint
2+
3+
pdf-docs: latex-docs
4+
make -C doc-source/build/latex/
5+
6+
latex-docs:
7+
SPHINX_BUILDER=latex tox -e docs
8+
9+
unused-imports:
10+
tox -e lint -- --select F401
11+
12+
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
15+
16+
vdiff:
17+
git diff $(repo-helper show version -q)..HEAD
18+
19+
bare-ignore:
20+
greppy '# type:? *ignore(?!\[|\w)' -s
21+
22+
lint: unused-imports incomplete-defs bare-ignore
23+
tox -n qa

0 commit comments

Comments
 (0)