Skip to content

Commit

Permalink
update cli-python dependencies & mypy config & update prettier to mir…
Browse files Browse the repository at this point in the history
…ror (#704)

* update cli-python dependencies

Signed-off-by: zethson <lukas.heumos@posteo.net>

* fix build

Signed-off-by: zethson <lukas.heumos@posteo.net>

* add types-attrs

Signed-off-by: zethson <lukas.heumos@posteo.net>

* add types-attrs

Signed-off-by: zethson <lukas.heumos@posteo.net>

* move mypy config into pytoml

Signed-off-by: zethson <lukas.heumos@posteo.net>

* move mypy config into pytoml for cli-python

Signed-off-by: zethson <lukas.heumos@posteo.net>

* reordering things & update prettier

Signed-off-by: zethson <lukas.heumos@posteo.net>

* fix mypy installations for nox

Signed-off-by: zethson <lukas.heumos@posteo.net>

* fix poetry lock

Signed-off-by: zethson <lukas.heumos@posteo.net>

* potential fix for mypy

Signed-off-by: zethson <lukas.heumos@posteo.net>

* readding types to nox

Signed-off-by: zethson <lukas.heumos@posteo.net>
  • Loading branch information
Zethson authored Jun 11, 2021
1 parent eeff886 commit 4987b76
Show file tree
Hide file tree
Showing 11 changed files with 320 additions and 250 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ repos:
types: [text]
stages: [commit, push, manual]
exclude: templates
- repo: https://github.com/prettier/pre-commit
rev: v2.1.2
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.0
hooks:
- id: prettier
exclude: templates
Expand Down
2 changes: 1 addition & 1 deletion cookietemple/create/templates/available_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cli:
python:
name: Python Commandline Package
handle: cli-python
version: 2.0.0
version: 2.0.1
available libraries: click
short description: General Python package with command line interface
long description: Best practice Python package with (optional) command line support (click).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ repos:
language: system
types: [text]
stages: [commit, push, manual]
- repo: https://github.com/prettier/pre-commit
rev: v2.1.2
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.0
hooks:
- id: prettier
- repo: https://github.com/pycqa/isort
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,8 @@ def mypy(session: Session) -> None:
"""Type-check using mypy."""
args = session.posargs or ["{{ cookiecutter.project_slug_no_hyphen }}", "tests", "docs/conf.py"]
session.install(".")
session.install("mypy", "pytest")
session.install("mypy", "pytest", "types-pkg-resources", "types-requests", "types-attrs")
session.run("mypy", *args)
if not session.posargs:
session.run("mypy", f"--python-executable={sys.executable}", "noxfile.py")


@session(python=python_versions)
Expand Down
Loading

0 comments on commit 4987b76

Please sign in to comment.