Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 30, 2021
2 parents 7536d0a + 0df4081 commit b4f4ddb
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/zipp

.. image:: https://github.com/jaraco/zipp/workflows/Automated%20Tests/badge.svg
:target: https://github.com/jaraco/zipp/actions?query=workflow%3A%22Automated+Tests%22
:alt: Automated Tests
.. image:: https://github.com/jaraco/zipp/workflows/tests/badge.svg
:target: https://github.com/jaraco/zipp/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 zipp 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 = zipp
author = Jason R. Coombs
author_email = jaraco@jaraco.com
Expand All @@ -14,13 +15,19 @@ classifiers =
Programming Language :: Python :: 3 :: Only

[options]
packages = find_namespace:
py_modules = zipp
packages = find:
include_package_data = true
python_requires = >=3.6
install_requires =
setup_requires = setuptools_scm[toml] >= 3.4.1

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

[options.extras_require]
testing =
# upstream
Expand All @@ -30,8 +37,7 @@ 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
jaraco.itertools
Expand All @@ -40,7 +46,7 @@ testing =
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.saobby.my.eu.orgmunity/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 @@ -35,6 +35,6 @@ 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

0 comments on commit b4f4ddb

Please sign in to comment.