Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Reorder pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Tezikov committed Jun 25, 2021
1 parent 8430de5 commit f5c1206
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 34 deletions.
51 changes: 33 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,26 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "python-package-template"
version = "1.0.0"
version = "1.0.1"
description = "Cookiecutter template for Python cli/packages"
readme = "README.md"
authors = ["Roman Tezikov <[email protected]>"]
license = "MIT"
repository = "https://github.com/TezRomacH/python-package-template"
homepage = "https://github.com/TezRomacH/python-package-template"
keywords = ["cookiecutter", "template", "packages", "black"]
keywords = [
"python",
"cookiecutter",
"template",
"packages",
"makefile",
"best-practices",
"poetry",
"codestyle",
"formatters",
"python-packages",
"semantic-versions"
]

# Pypi classifiers: https://pypi.org/classifiers/
classifiers = []
Expand All @@ -22,22 +34,23 @@ python = "^3.7"
cookiecutter = "^1.7.3"

[tool.poetry.dev-dependencies]
bandit = "^1.7.0"
black = "^21.6b0"
darglint = "^1.8.0"
isort = "^5.9.1"
pyupgrade = "^2.19.4"
black = "^21.6b0"
mypy = "^0.910"
bandit = "^1.7.0"
safety = "^1.10.3"
pytest = "^6.2.4"
pylint = "^2.8.3"
pydocstyle = "^6.1.1"
pre-commit = "^2.13.0"
pydocstyle = "^6.1.1"
pylint = "^2.8.3"
pytest = "^6.2.4"
pyupgrade = "^2.19.4"
safety = "^1.10.3"

[tool.black]
# https://github.com/psf/black
line-length = 100
target-version = ["py37"]
line-length = 100

exclude = '''
/(
\.git
Expand All @@ -57,34 +70,36 @@ exclude = '''
[tool.isort]
# https://github.com/timothycrosley/isort/
py_version = 37
line_length = 100

known_typing = "typing,types,typing_extensions,mypy,mypy_extensions"
sections = "FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
include_trailing_comma = true
multi_line_output = 3
indent = 4
force_grid_wrap = 0
use_parentheses = true
line_length = 100

[tool.mypy]
# mypy configurations: https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
python_version = 3.7
pretty = true

allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
ignore_missing_imports = true
implicit_reexport = false
strict_optional = true
strict_equality = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_return_any = true
warn_unreachable = true
show_error_codes = true
show_column_numbers = true
show_error_context = true
warn_unused_configs = true
warn_unused_ignores = true
35 changes: 19 additions & 16 deletions {{ cookiecutter.project_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,23 @@ typer = {extras = ["all"], version = "^0.3.2"}
rich = "^10.4.0"
{% endif %}
[tool.poetry.dev-dependencies]
bandit = "^1.7.0"
black = "^21.6b0"
darglint = "^1.8.0"
isort = "^5.9.1"
pyupgrade = "^2.19.4"
black = "^21.6b0"
mypy = "^0.910"
bandit = "^1.7.0"
safety = "^1.10.3"
pytest = "^6.2.4"
pylint = "^2.8.3"
pydocstyle = "^6.1.1"
pre-commit = "^2.13.0"
pydocstyle = "^6.1.1"
pylint = "^2.8.3"
pytest = "^6.2.4"
pyupgrade = "^2.19.4"
safety = "^1.10.3"

[tool.black]
# https://github.com/psf/black
line-length = {{ cookiecutter.line_length }}
target-version = ["py{{ cookiecutter.minimal_python_version.replace('.', '') }}"]
line-length = {{ cookiecutter.line_length }}

exclude = '''
/(
\.git
Expand All @@ -82,34 +83,36 @@ exclude = '''
[tool.isort]
# https://github.com/timothycrosley/isort/
py_version = {{ cookiecutter.minimal_python_version.replace('.', '') }}
line_length = {{ cookiecutter.line_length }}

known_typing = "typing,types,typing_extensions,mypy,mypy_extensions"
sections = "FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
include_trailing_comma = true
multi_line_output = 3
indent = 4
force_grid_wrap = 0
use_parentheses = true
line_length = {{ cookiecutter.line_length }}

[tool.mypy]
# mypy configurations: https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
python_version = {{ cookiecutter.minimal_python_version }}
pretty = true

allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
ignore_missing_imports = true
implicit_reexport = false
strict_optional = true
strict_equality = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_return_any = true
warn_unreachable = true
show_error_codes = true
show_column_numbers = true
show_error_context = true
warn_unused_configs = true
warn_unused_ignores = true

0 comments on commit f5c1206

Please sign in to comment.