Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cookiecutter-hypermodern-python to 2021.4.15 #352

Merged
merged 1 commit into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"email": "[email protected]",
"friendly_name": "nox-poetry",
"github_user": "cjolowicz",
"license": "MIT",
"package_name": "nox_poetry",
"project_name": "nox-poetry",
"version": "0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion .darglint
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[darglint]
strictness = short
strictness = long
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ max-line-length = 80
max-complexity = 10
docstring-convention = google
per-file-ignores = tests/*:S101
rst-roles = const,class,func,meth,mod,ref
rst-roles = class,const,func,meth,mod,ref
rst-directives = deprecated
2 changes: 1 addition & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pip==21.0.1
nox==2020.12.31
poetry==1.1.5
poetry==1.1.6
virtualenv==20.4.3
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 2

- name: Set up Python
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
python-version: "3.9"

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/[email protected]

- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
print("::set-output name=result::{}".format(result))

- name: Restore pre-commit cache
uses: actions/[email protected].4
uses: actions/[email protected].5
if: matrix.session == 'pre-commit'
with:
path: ~/.cache/pre-commit
Expand All @@ -88,14 +88,14 @@ jobs:

- name: Upload coverage data
if: always() && matrix.session == 'tests'
uses: "actions/[email protected].2"
uses: "actions/[email protected].3"
with:
name: coverage-data
path: ".coverage.*"

- name: Upload documentation
if: matrix.session == 'docs-build'
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
name: docs
path: docs/_build
Expand All @@ -108,7 +108,7 @@ jobs:
uses: actions/[email protected]

- name: Set up Python 3.9
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
python-version: 3.9

Expand All @@ -132,7 +132,7 @@ jobs:
pip install .

- name: Download coverage data
uses: actions/[email protected].8
uses: actions/[email protected].9
with:
name: coverage-data

Expand All @@ -145,4 +145,4 @@ jobs:
nox --force-color --session=coverage -- xml

- name: Upload coverage report
uses: codecov/[email protected].1
uses: codecov/[email protected].2
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License
===========

Copyright © 2020 Claudio Jolowicz
Copyright © 2021 Claudio Jolowicz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ License
-------

``nox-poetry`` is free and open source software,
distributed under the terms of the MIT_ license.
distributed under the terms of the `MIT license`_.


Issues
Expand All @@ -179,9 +179,9 @@ Credits

This project was generated from `@cjolowicz`_'s `Hypermodern Python Cookiecutter`_ template.


.. _@cjolowicz: https://github.com/cjolowicz
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _MIT license: https://opensource.org/licenses/MIT
.. _Hypermodern Python Cookiecutter: https://github.com/cjolowicz/cookiecutter-hypermodern-python
.. _MIT: http://opensource.org/licenses/MIT
.. _Nox: https://nox.thea.codes/
Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sphinx==3.5.3
furo==2021.3.20b30
sphinx==3.5.4
furo==2021.2.28b28
16 changes: 1 addition & 15 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
[mypy]
check_untyped_defs = True
disallow_any_generics = True
disallow_incomplete_defs = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
disallow_untyped_defs = True
no_implicit_optional = True
no_implicit_reexport = True
strict = True
pretty = True
show_column_numbers = True
show_error_codes = True
show_error_context = True
strict_equality = True
warn_redundant_casts = True
warn_return_any = True
warn_unreachable = True
warn_unused_configs = True
warn_unused_ignores = True

[mypy-tomlkit]
ignore_missing_imports = True
4 changes: 1 addition & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ def safety(session: Session) -> None:
"""Scan dependencies for insecure packages."""
requirements = session.poetry.export_requirements()
session.install("safety")
# Ignore CVE-2020-28476 affecting all versions of tornado
# https://github.com/tornadoweb/tornado/issues/2981
session.run("safety", "check", f"--file={requirements}", "--bare", "--ignore=39462")
session.run("safety", "check", "--full-report", f"--file={requirements}")


@session(python=python_versions)
Expand Down
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ tomlkit = "^0.7.0"
packaging = ">=20.9"

[tool.poetry.dev-dependencies]
pytest = "^6.2.2"
pytest = "^6.2.3"
coverage = {extras = ["toml"], version = "^5.5"}
safety = "^1.10.3"
mypy = "^0.812"
typeguard = "^2.11.1"
typeguard = "^2.12.0"
xdoctest = {extras = ["colors"], version = "^0.15.4"}
sphinx = "^3.5.3"
sphinx = "^3.5.4"
sphinx-autobuild = "^2021.3.14"
pre-commit = "^2.11.1"
pre-commit = "^2.12.0"
flake8 = "^3.9.0"
black = "^20.8b1"
flake8-bandit = "^2.1.2"
flake8-bugbear = "^21.3.2"
flake8-bugbear = "^21.4.3"
flake8-docstrings = "^1.6.0"
flake8-rst-docstrings = "^0.0.14"
pep8-naming = "^0.11.1"
darglint = "^1.7.0"
darglint = "^1.8.0"
reorder-python-imports = "^2.4.0"
pre-commit-hooks = "^3.4.0"
furo = "^2021.3.20b30"
Expand Down