Skip to content

Commit ae76852

Browse files
committed
Updated config files.
1 parent cec1a89 commit ae76852

11 files changed

Lines changed: 88 additions & 59 deletions

File tree

.ci/travis_deploy_conda.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ if [ "$TRAVIS_PYTHON_VERSION" == 3.6 ]; then
88
echo "Deferring building conda package because this is release"
99
else
1010

11-
python3 ./make_conda_recipe.py || exit 1
11+
python3 -m pip install repo_helper || exit 1
12+
python3 -m repo_helper make-recipe || exit 1
1213

1314
# Switch to miniconda
1415
source "/home/travis/miniconda/etc/profile.d/conda.sh"

.github/workflows/conda_ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
name: Conda Tests
4+
5+
on:
6+
push:
7+
pull_request:
8+
branches: ["master"]
9+
10+
jobs:
11+
tests:
12+
name: "Python ${{ matrix.python-version }}"
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: False
17+
matrix:
18+
python-version: ["3.6","3.7","3.8","3.9"]
19+
20+
steps:
21+
- name: Checkout 🛎️
22+
uses: "actions/checkout@v2"
23+
- name: Setup Python 🐍
24+
uses: "actions/setup-python@v2"
25+
with:
26+
python-version: "${{ matrix.python-version }}"
27+
- name: Install dependencies 🔧
28+
run: |
29+
python -VV
30+
python -m site
31+
python -m pip install --upgrade pip setuptools wheel
32+
python -m pip install --upgrade repo_helper
33+
# $CONDA is an environment variable pointing to the root of the miniconda directory
34+
$CONDA/bin/conda update -q conda
35+
36+
$CONDA/bin/conda config --add channels domdfcoding
37+
38+
$CONDA/bin/conda config --add channels conda-forge
39+
40+
41+
- name: "Build and install package"
42+
run: |
43+
# This mess is only necessary because conda won't fix it themselves
44+
# https://github.com/conda/conda/issues/1884
45+
python -m repo_helper build --conda --out-dir conda-bld/noarch
46+
$CONDA/bin/conda install flake8-dunder-all -c local -y || exit 1

.isort.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ default_section = THIRDPARTY
1515
;no_lines_before=LOCALFOLDER
1616
known_third_party =
1717
asttokens
18+
click
19+
consolekit
1820
coverage
1921
coverage-pyver-pragma
2022
domdf-python-tools

.pre-commit-config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
- id: mixed-line-ending
2525

2626
- repo: https://github.com/domdfcoding/pre-commit-hooks
27-
rev: v0.0.4
27+
rev: v0.1.1
2828
hooks:
2929
- id: requirements-txt-sorter
3030
args:
@@ -62,3 +62,12 @@ repos:
6262
hooks:
6363
- id: yapf-isort
6464
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.py$
65+
66+
- repo: https://github.com/domdfcoding/dep_checker
67+
rev: v0.3.1
68+
hooks:
69+
- id: dep_checker
70+
args:
71+
- flake8_dunder_all
72+
73+
# Custom hooks can be added below this comment

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ stages:
3535
jobs:
3636
allow_failures:
3737
- arch: arm64
38+
- python: ['3.10-dev']
3839

3940
exclude:
4041
- python: '3.7'
@@ -72,7 +73,6 @@ jobs:
7273
apt:
7374
update: true
7475
install:
75-
- pip install rst2txt yolk3k
7676
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
7777
- bash miniconda.sh -b -p $HOME/miniconda
7878
- chmod +x .ci/travis_deploy_conda.sh

CONTRIBUTING.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ Install ``pre-commit`` with ``pip`` and install the git hook:
1717
Coding style
1818
--------------
1919

20-
`Yapf <https://github.com/google/yapf>`_ is used for code formatting, and `isort <https://timothycrosley.github.io/isort/>`_ is used to sort imports.
20+
`yapf-isort <https://pypi.org/project/yapf-isort/>`_ is used for code formatting.
2121

22-
``yapf`` and ``isort`` can be run manually via ``pre-commit``:
22+
It can be run manually via ``pre-commit``:
2323

2424
.. code-block:: bash
2525
26-
$ pre-commit run yapf -a
27-
$ pre-commit run isort -a
26+
$ pre-commit run yapf-isort -a
2827
2928
30-
The complete autoformatting suite can be run with ``pre-commit``:
29+
Or, to run the complete autoformatting suite:
3130

3231
.. code-block:: bash
3332

doc-source/contributing.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,16 @@ Install ``pre-commit`` with ``pip`` and install the git hook:
1616
Coding style
1717
--------------
1818

19-
`Yapf <https://github.com/google/yapf>`_ is used for code formatting, and `isort <https://timothycrosley.github.io/isort/>`_ is used to sort imports.
19+
`yapf-isort <https://pypi.org/project/yapf-isort/>`_ is used for code formatting.
2020

21-
``yapf`` and ``isort`` can be run manually via ``pre-commit``:
21+
It can be run manually via ``pre-commit``:
2222

2323
.. prompt:: bash
2424

25-
pre-commit run yapf -a
26-
pre-commit run isort -a
25+
pre-commit run yapf-isort -a
2726

2827

29-
The complete autoformatting suite can be run with ``pre-commit``:
28+
Or, to run the complete autoformatting suite:
3029

3130
.. prompt:: bash
3231

doc-source/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sphinx-copybutton>=0.2.12
1010
sphinx-notfound-page>=0.5
1111
sphinx-prompt>=1.1.0
1212
sphinx-tabs>=1.1.13
13-
sphinx-toolbox>=1.7.1
13+
sphinx-toolbox>=1.7.2
1414
sphinxcontrib-httpdomain>=1.7.0
1515
sphinxemoji>=0.1.6
1616
tabulate>=0.8.7

lint_roller.sh

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

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# * options
55
# * options.packages.find
66
# * mypy
7+
# * options.entry_points
78

89
[metadata]
910
name = flake8-dunder-all
@@ -56,8 +57,6 @@ check_untyped_defs = True
5657
warn_unused_ignores = True
5758

5859
[options.entry_points]
59-
flake8.extension =
60-
DUNDER_ALL=flake8_dunder_all:Plugin
6160
console_scripts =
6261
ensure_dunder_all=flake8_dunder_all.__main__:main
6362
ensure-dunder-all=flake8_dunder_all.__main__:main

0 commit comments

Comments
 (0)