Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 12, 2021
2 parents ea86b0d + 51298a2 commit fd08292
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 26 deletions.
10 changes: 5 additions & 5 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[flake8]
max-line-length = 88
ignore =
# W503 violates spec https://github.com/PyCQA/pycodestyle/issues/513
W503
# W504 has issues https://github.com/OCA/maintainer-quality-tools/issues/545
W504

# jaraco/skeleton#34
max-complexity = 10

extend-ignore =
# Black creates whitespace before colon
E203
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Automated Tests
name: tests

on: [push, pull_request]

Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/psf/black
rev: stable
rev: 20.8b1
hooks:
- id: black

- repo: https://github.com/asottile/blacken-docs
rev: v1.8.0
rev: v1.9.1
hooks:
- id: blacken-docs
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

.. _PyPI link: https://pypi.org/project/pytest-runner

.. image:: https://github.com/jaraco/pytest-runner/workflows/Automated%20Tests/badge.svg
:target: https://github.com/jaraco/pytest-runner/actions?query=workflow%3A%22Automated+Tests%22
:alt: Automated Tests
.. image:: https://github.com/jaraco/pytest-runner/workflows/tests/badge.svg
:target: https://github.com/jaraco/pytest-runner/actions?query=workflow%3A%22tests%22
:alt: tests

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Welcome to pytest-runner documentation!
=======================================
Welcome to |project| documentation!
===================================

.. toctree::
:maxdepth: 1
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ skip-string-normalization = true

[tool.setuptools_scm]

# jaraco/skeleton#22
[tool.jaraco.pytest.plugins.black]
[pytest.enabler.black]
addopts = "--black"

# jaraco/skeleton#22
[tool.jaraco.pytest.plugins.mypy]
[pytest.enabler.mypy]
addopts = "--mypy"

[tool.jaraco.pytest.plugins.flake8]
[pytest.enabler.flake8]
addopts = "--flake8"

[tool.jaraco.pytest.plugins.cov]
[pytest.enabler.cov]
addopts = "--cov"
16 changes: 11 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[metadata]
license_file = LICENSE
license_files =
LICENSE
name = pytest-runner
author = Jason R. Coombs
author_email = [email protected]
Expand All @@ -15,14 +16,20 @@ classifiers =
Framework :: Pytest

[options]
packages = find:
packages = find_namespace:
py_modules = ptr
include_package_data = true
python_requires = >=3.6
install_requires =
# setuptools 27.3 is required at run time
setup_requires = setuptools_scm[toml] >= 3.4.1

[options.packages.find]
exclude =
build*
docs*
tests*

[options.extras_require]
testing =
# upstream
Expand All @@ -32,16 +39,15 @@ testing =
pytest-black >= 0.3.7; python_implementation != "PyPy"
pytest-cov
pytest-mypy; python_implementation != "PyPy"
# jaraco/skeleton#22
jaraco.test >= 3.2.0
pytest-enabler

# local
pytest-virtualenv

docs =
# upstream
sphinx
jaraco.packaging >= 3.2
jaraco.packaging >= 8.2
rst.linker >= 1.9

# local
Expand Down
2 changes: 2 additions & 0 deletions skeleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ Features include:
- test against multiple Python versions
- run on late (and updated) platform versions
- automated releases of tagged commits
- [automatic merging of PRs](https://github.com/marketplace/actions/merge-pull-requests) (requires [protecting branches with required status checks](https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/enabling-required-status-checks), [not possible through API](https://github.521000.bestmunity/t/set-all-status-checks-to-be-required-as-branch-protection-using-the-github-api/119493))


### Continuous Deployments

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ commands =
[testenv:release]
skip_install = True
deps =
pep517>=0.5
build
twine[keyring]>=1.13
path
jaraco.develop>=7.1
Expand All @@ -36,7 +36,7 @@ setenv =
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
python -c "import path; path.Path('dist').rmtree_p()"
python -m pep517.build .
python -m build
python -m twine upload dist/*
python -m jaraco.develop.create-github-release
python -m jaraco.tidelift.publish-release-notes

0 comments on commit fd08292

Please sign in to comment.