Skip to content

Commit 456fa21

Browse files
committed
Update config files.
1 parent bf31995 commit 456fa21

19 files changed

+239
-259
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ assignees: domdfcoding
99
<!-- Have you searched for similar issues? Before submitting this issue, please check the open issues and add a note before logging a new issue.
1010
1111
PLEASE USE THE TEMPLATE BELOW TO PROVIDE INFORMATION ABOUT THE ISSUE.
12-
INSUFFICIENT INFO WILL GET THE ISSUE CLOSED. IT WILL ONLY BE REOPENED AFTER SUFFICIENT INFO IS PROVIDED-->
12+
THE ISSUE WILL BE CLOSED IF INSUFFICIENT INFORMATION IS PROVIDED.
13+
-->
1314

1415
## Description
1516
<!--Provide a brief description of the issue-->

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ assignees: domdfcoding
77
---
88

99
<!-- Have you searched for similar issues? Someone may already be working on the feature you are suggesting. Before submitting this issue, please check the open issues and add a note before logging a new issue.
10-
11-
PLEASE USE THE TEMPLATE BELOW TO PROVIDE INFORMATION ABOUT THE ISSUE.
12-
INSUFFICIENT INFO WILL GET THE ISSUE CLOSED. IT WILL ONLY BE REOPENED AFTER SUFFICIENT INFO IS PROVIDED-->
10+
-->
1311

1412

1513
## Description

.github/workflows/docs_test_action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- name: Install and Build 🔧
1515
uses: ammaraskar/sphinx-action@master
1616
with:
17-
pre-build-command: apt-get update && apt-get install gcc python3-dev -y && python -m pip install tox
17+
pre-build-command: apt-get update && apt-get install gcc python3-dev git -y && python -m pip install tox
1818
docs-folder: "doc-source/"
1919
build-command: "tox -e docs -- "

.github/workflows/python_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
name: "Python ${{ matrix.python-version }}"
1313
runs-on: "windows-2019"
1414
env:
15-
USING_COVERAGE: '3.6,3.7,3.8,3.9-dev,pypy3'
15+
USING_COVERAGE: '3.6,3.7,3.8,pypy3'
1616

1717
strategy:
1818
fail-fast: False
1919
matrix:
20-
python-version: ["3.6","3.7","3.8","3.9-dev","pypy3"]
20+
python-version: ["3.6","3.7","3.8","pypy3"]
2121

2222

2323
steps:

.github/workflows/python_ci_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
name: "Python ${{ matrix.python-version }}"
1313
runs-on: "macos-latest"
1414
env:
15-
USING_COVERAGE: '3.6,3.7,3.8,3.9-dev,pypy3'
15+
USING_COVERAGE: '3.6,3.7,3.8,pypy3'
1616

1717
strategy:
1818
fail-fast: False
1919
matrix:
20-
python-version: ["3.6","3.7","3.8","3.9-dev","pypy3"]
20+
python-version: ["3.6","3.7","3.8","pypy3"]
2121

2222

2323
steps:

.isort.cfg

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ known_third_party =
1717
flake8
1818
github
1919
pytest
20-
pytest-cov
21-
pytest-randomly
22-
pytest-rerunfailures
20+
pytest_cov
21+
pytest_randomly
22+
pytest_rerunfailures
23+
pytest_timeout
2324
requests
2425
known_first_party = coverage_pyver_pragma
2526
remove_redundant_aliases = True

.pre-commit-config.yaml

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,48 +22,40 @@ repos:
2222
- id: mixed-line-ending
2323

2424
- repo: https://github.com/domdfcoding/pre-commit-hooks
25-
rev: v0.0.2
25+
rev: v0.0.4
2626
hooks:
2727
- id: requirements-txt-sorter
28+
args: [--allow-git]
2829
- id: check-docstring-first
30+
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup|tests/.*)\.py$
31+
- id: bind-requirements
32+
33+
- repo: https://github.com/domdfcoding/flake8-dunder-all
34+
rev: v0.0.4
35+
hooks:
36+
- id: ensure-dunder-all
37+
files: ^coverage_pyver_pragma/.*\.py$
2938

3039
- repo: https://github.com/pre-commit/pygrep-hooks
3140
rev: v1.5.1
3241
hooks:
3342
- id: python-no-eval
34-
- id: python-use-type-annotations
3543

3644
- repo: https://github.com/asottile/pyupgrade
3745
rev: v1.5.1
3846
hooks:
3947
- id: pyupgrade
4048
args: [--py36-plus]
4149

42-
- repo: https://github.com/timothycrosley/isort
43-
rev: 5.1.4
44-
hooks:
45-
- id: isort
46-
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.py$
47-
48-
- repo: https://github.com/pre-commit/mirrors-yapf
49-
rev: v0.30.0
50-
hooks:
51-
- id: yapf
52-
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.py$
53-
args: ["--in-place"]
54-
5550
- repo: https://github.com/Lucas-C/pre-commit-hooks
5651
rev: v1.1.7
5752
hooks:
58-
- id: forbid-crlf
5953
- id: remove-crlf
54+
- id: forbid-crlf
6055

61-
# - repo: https://github.com/shellcheck-py/shellcheck-py
62-
# rev: v0.7.1.1
63-
# hooks:
64-
# - id: shellcheck
6556

66-
# - repo: https://github.com/adrienverge/yamllint
67-
# rev: v1.23.0
68-
# hooks:
69-
# - id: yamllint
57+
- repo: https://github.com/domdfcoding/yapf-isort
58+
rev: v0.3.0
59+
hooks:
60+
- id: yapf-isort
61+
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.py$

.travis.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33

44
language: python
5-
dist: xenial
5+
dist: focal
66
cache: pip
77
python:
88
- '3.6'
@@ -11,14 +11,17 @@ python:
1111
- '3.9-dev'
1212
- 'pypy3'
1313

14+
arch:
15+
- amd64
16+
- arm64
1417
install:
1518

1619
- pip install --upgrade pip
1720
- pip install tox tox-travis
1821
- pip install coveralls coverage_pyver_pragma
1922

2023
script:
21-
- tox
24+
- tox -vv
2225
after_success:
2326
- coveralls
2427

@@ -30,7 +33,24 @@ stages:
3033

3134

3235
jobs:
36+
allow_failures:
37+
- arch: arm64
38+
39+
exclude:
40+
- python: '3.7'
41+
arch: arm64
42+
- python: '3.8'
43+
arch: arm64
44+
- python: '3.9-dev'
45+
arch: arm64
46+
- python: 'pypy3'
47+
arch: arm64
48+
3349
include:
50+
- stage: test
51+
dist: bionic
52+
python: 3.8
53+
3454
- stage: deploy_pypi
3555
python: "3.6"
3656
script: skip
@@ -56,7 +76,5 @@ jobs:
5676
- chmod +x .ci/travis_deploy_conda.sh
5777
script: skip
5878
deploy:
59-
on:
60-
repo: domdfcoding/coverage_pyver_pragma
6179
provider: script
6280
script: .ci/travis_deploy_conda.sh || return 1;

CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.. This file based on https://github.com/PyGithub/PyGithub/blob/master/CONTRIBUTING.md
2-
31
==============
42
Contributing
53
==============
64

5+
.. This file based on https://github.com/PyGithub/PyGithub/blob/master/CONTRIBUTING.md
6+
77
``coverage_pyver_pragma`` uses `tox <https://tox.readthedocs.io>`_ to automate testing and packaging, and `pre-commit <https://pre-commit.com>`_ to maintain code quality.
88

99
Install ``pre-commit`` with ``pip`` and install the git hook:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ coverage_pyver_pragma
3030

3131
.. |docs| image:: https://img.shields.io/readthedocs/coverage_pyver_pragma/latest?logo=read-the-docs
3232
:target: https://coverage_pyver_pragma.readthedocs.io/en/latest/?badge=latest
33-
:alt: Documentation Status
33+
:alt: Documentation Build Status
3434

3535
.. |docs_check| image:: https://github.com/domdfcoding/coverage_pyver_pragma/workflows/Docs%20Check/badge.svg
3636
:target: https://github.com/domdfcoding/coverage_pyver_pragma/actions?query=workflow%3A%22Docs+Check%22

0 commit comments

Comments
 (0)