Skip to content

Commit

Permalink
chore: Template upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Sep 8, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2d0613d commit 4d34342
Showing 9 changed files with 57 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 4aa16ef
_commit: 6e49531
_src_path: gh:pawamoy/copier-poetry
author_email: [email protected]
author_fullname: "Timoth\xE9e Mazzucotelli"
7 changes: 7 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
github:
- pawamoy
ko_fi: pawamoy
liberapay: pawamoy
patreon: pawamoy
custom:
- https://www.paypal.me/pawamoy
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,9 +4,7 @@ __pycache__/
dist/
*.egg-info/
build/
.coverage
tests/tmp/*
!tests/tmp/.gitkeep
.coverage*
pip-wheel-metadata/
.pytest_cache/
input.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -23,10 +23,10 @@ export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"

# install Python 3.6
pyenv install 3.6.8
pyenv install 3.6.12

# make it available globally
pyenv global system 3.6.8
pyenv global system 3.6.12
```
</details>

45 changes: 24 additions & 21 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -5,26 +5,26 @@ repo_url: "https://github.com/pawamoy/pytkdocs"
repo_name: "pawamoy/pytkdocs"

nav:
- Overview: "index.md"
- Reference:
- __init__.py: "reference/__init__.md"
- __main__.py: "reference/__main__.md"
- cli.py: "reference/cli.md"
- loader.py: "reference/loader.md"
- objects.py: "reference/objects.md"
- parsers:
- __init__.py: "reference/parsers/__init__.md"
- attributes.py: "reference/parsers/attributes.md"
- docstrings:
- __init__.py: "reference/parsers/docstrings/__init__.md"
- base.py: "reference/parsers/docstrings/base.md"
- google.py: "reference/parsers/docstrings/google.md"
- properties.py: "reference/properties.md"
- serializer.py: "reference/serializer.md"
- Contributing: "contributing.md"
- Code of Conduct: "code_of_conduct.md"
- Changelog: "changelog.md"
- Credits: "credits.md"
- Overview: index.md
- API Reference:
- __init__.py: reference/__init__.md
- __main__.py: reference/__main__.md
- cli.py: reference/cli.md
- loader.py: reference/loader.md
- objects.py: reference/objects.md
- parsers:
- __init__.py: reference/parsers/__init__.md
- attributes.py: reference/parsers/attributes.md
- docstrings:
- __init__.py: reference/parsers/docstrings/__init__.md
- base.py: reference/parsers/docstrings/base.md
- google.py: reference/parsers/docstrings/google.md
- properties.py: reference/properties.md
- serializer.py: reference/serializer.md
- Contributing: contributing.md
- Code of Conduct: code_of_conduct.md
- Changelog: changelog.md
- Credits: credits.md

theme:
name: material
@@ -36,8 +36,11 @@ markdown_extensions:
- admonition
- codehilite:
guess_lang: false
- pymdownx.superfences
- pymdownx.emoji
- pymdownx.magiclink
- pymdownx.superfences
- pymdownx.tabbed
- pymdownx.tasklist
- toc:
permalink: "¤"

40 changes: 21 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -21,21 +21,21 @@ include = [
[tool.poetry.dependencies]
python = "^3.6"

coverage = { version = "^5.0.4", optional = true }
invoke = { version = "^1.4.1", optional = true }
mypy = { version = "^0.770", optional = true }
pytest = { version = "^4.3", optional = true }
pytest-randomly = { version = "^3.4.1", optional = true }
pytest-sugar = { version = "^0.9.2", optional = true }
pytest-xdist = { version = "^1.26", optional = true }
coverage = {version = "^5.2.1", optional = true}
invoke = {version = "^1.4.1", optional = true}
mypy = {version = "^0.782", optional = true}
pytest = {version = "^6.0.1", optional = true}
pytest-randomly = {version = "^3.4.1", optional = true}
pytest-sugar = {version = "^0.9.4", optional = true}
pytest-xdist = {version = "^2.1.0", optional = true}

[tool.poetry.extras]
tests = ["coverage", "invoke", "mypy", "pytest", "pytest-randomly", "pytest-sugar", "pytest-xdist"]

[tool.poetry.dev-dependencies]
autoflake = "^1.3.1"
autoflake = "^1.4"
black = "^20.8b1"
coverage = "^5.0.4"
coverage = "^5.2.1"
failprint = "^0.3.0"
flakehell = "^0.6.0"
flake8-black = "^0.2.1"
@@ -44,23 +44,25 @@ flake8-tidy-imports = "^4.1.0"
flake8-variables-names = "^0.0.3"
flake8-pytest-style = "^1.3.0"
git-changelog = "^0.4.0"
httpx = "^0.13.3"
httpx = "^0.14.3"
invoke = "^1.4.1"
ipython = "^7.2"
isort = { version = "^4.3", extras = ["pyproject"] }
# TODO: accept v5 once https://github.com/wemake-services/wemake-python-styleguide/issues/1584 is resolved
isort = {version = "<5", extras = ["pyproject"]}
jinja2-cli = "^0.7.0"
marshmallow = "^3.5.2"
mkdocs = "^1.1"
mkdocs-material = ">=4.5, <6.0"
mkdocstrings = "^0.12.0"
mypy = "^0.770"
mkdocs = "^1.1.2"
mkdocs-material = "^5.5.12"
mkdocstrings = "^0.13.1"
mypy = "^0.782"
pydantic = "^1.5.1"
pytest = "^5.3.5"
pytest = "^6.0.1"
pytest-randomly = "^3.4.1"
pytest-sugar = "^0.9.2"
pytest-xdist = "^1.31"
toml = "^0.10.0"
pytest-sugar = "^0.9.4"
pytest-xdist = "^2.1.0"
toml = "^0.10.1"
wemake-python-styleguide = "^0.14.1"
# TODO: remove once https://github.com/python-poetry/poetry/issues/2728 is resolved
wrapt = "^1.12.1"

[tool.poetry.scripts]
1 change: 0 additions & 1 deletion scripts/gen_credits_data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Generate data to render the credits template."""
# noqa: WPS226 ("name" over-use)

import json
import sys
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
@@ -256,7 +256,7 @@ def format(context): # noqa: W0622 (we don't mind shadowing the format builtin)
"""
context.run(
"failprint -t 'Removing unused imports' -- "
"autoflake -ir --exclude tests/fixtures --remove-all-unused-imports " + PY_SRC
"autoflake -ir --exclude tests/fixtures --remove-all-unused-imports " + PY_SRC,
)
context.run("failprint -t 'Ordering imports' -- isort -y -rc " + PY_SRC)
context.run("failprint -t 'Formatting code' -- black " + PY_SRC)
Empty file removed tests/tmp/.gitkeep
Empty file.

0 comments on commit 4d34342

Please sign in to comment.