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

Commit f5c1206

Browse files
author
Roman Tezikov
committed
Reorder pyproject.toml
1 parent 8430de5 commit f5c1206

File tree

2 files changed

+52
-34
lines changed

2 files changed

+52
-34
lines changed

pyproject.toml

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,26 @@ build-backend = "poetry.core.masonry.api"
55

66
[tool.poetry]
77
name = "python-package-template"
8-
version = "1.0.0"
8+
version = "1.0.1"
99
description = "Cookiecutter template for Python cli/packages"
1010
readme = "README.md"
1111
authors = ["Roman Tezikov <[email protected]>"]
1212
license = "MIT"
1313
repository = "https://github.com/TezRomacH/python-package-template"
1414
homepage = "https://github.com/TezRomacH/python-package-template"
15-
keywords = ["cookiecutter", "template", "packages", "black"]
15+
keywords = [
16+
"python",
17+
"cookiecutter",
18+
"template",
19+
"packages",
20+
"makefile",
21+
"best-practices",
22+
"poetry",
23+
"codestyle",
24+
"formatters",
25+
"python-packages",
26+
"semantic-versions"
27+
]
1628

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

2436
[tool.poetry.dev-dependencies]
37+
bandit = "^1.7.0"
38+
black = "^21.6b0"
2539
darglint = "^1.8.0"
2640
isort = "^5.9.1"
27-
pyupgrade = "^2.19.4"
28-
black = "^21.6b0"
2941
mypy = "^0.910"
30-
bandit = "^1.7.0"
31-
safety = "^1.10.3"
32-
pytest = "^6.2.4"
33-
pylint = "^2.8.3"
34-
pydocstyle = "^6.1.1"
3542
pre-commit = "^2.13.0"
43+
pydocstyle = "^6.1.1"
44+
pylint = "^2.8.3"
45+
pytest = "^6.2.4"
46+
pyupgrade = "^2.19.4"
47+
safety = "^1.10.3"
3648

3749
[tool.black]
3850
# https://github.com/psf/black
39-
line-length = 100
4051
target-version = ["py37"]
52+
line-length = 100
53+
4154
exclude = '''
4255
/(
4356
\.git
@@ -57,34 +70,36 @@ exclude = '''
5770
[tool.isort]
5871
# https://github.com/timothycrosley/isort/
5972
py_version = 37
73+
line_length = 100
74+
6075
known_typing = "typing,types,typing_extensions,mypy,mypy_extensions"
6176
sections = "FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
6277
include_trailing_comma = true
6378
multi_line_output = 3
6479
indent = 4
6580
force_grid_wrap = 0
6681
use_parentheses = true
67-
line_length = 100
6882

6983
[tool.mypy]
7084
# mypy configurations: https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
7185
python_version = 3.7
7286
pretty = true
87+
7388
allow_redefinition = false
7489
check_untyped_defs = true
7590
disallow_any_generics = true
7691
disallow_incomplete_defs = true
7792
ignore_missing_imports = true
7893
implicit_reexport = false
79-
strict_optional = true
80-
strict_equality = true
8194
no_implicit_optional = true
95+
show_column_numbers = true
96+
show_error_codes = true
97+
show_error_context = true
98+
strict_equality = true
99+
strict_optional = true
82100
warn_no_return = true
83-
warn_unused_ignores = true
84101
warn_redundant_casts = true
85-
warn_unused_configs = true
86102
warn_return_any = true
87103
warn_unreachable = true
88-
show_error_codes = true
89-
show_column_numbers = true
90-
show_error_context = true
104+
warn_unused_configs = true
105+
warn_unused_ignores = true

{{ cookiecutter.project_name }}/pyproject.toml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,23 @@ typer = {extras = ["all"], version = "^0.3.2"}
4747
rich = "^10.4.0"
4848
{% endif %}
4949
[tool.poetry.dev-dependencies]
50+
bandit = "^1.7.0"
51+
black = "^21.6b0"
5052
darglint = "^1.8.0"
5153
isort = "^5.9.1"
52-
pyupgrade = "^2.19.4"
53-
black = "^21.6b0"
5454
mypy = "^0.910"
55-
bandit = "^1.7.0"
56-
safety = "^1.10.3"
57-
pytest = "^6.2.4"
58-
pylint = "^2.8.3"
59-
pydocstyle = "^6.1.1"
6055
pre-commit = "^2.13.0"
56+
pydocstyle = "^6.1.1"
57+
pylint = "^2.8.3"
58+
pytest = "^6.2.4"
59+
pyupgrade = "^2.19.4"
60+
safety = "^1.10.3"
6161

6262
[tool.black]
6363
# https://github.com/psf/black
64-
line-length = {{ cookiecutter.line_length }}
6564
target-version = ["py{{ cookiecutter.minimal_python_version.replace('.', '') }}"]
65+
line-length = {{ cookiecutter.line_length }}
66+
6667
exclude = '''
6768
/(
6869
\.git
@@ -82,34 +83,36 @@ exclude = '''
8283
[tool.isort]
8384
# https://github.com/timothycrosley/isort/
8485
py_version = {{ cookiecutter.minimal_python_version.replace('.', '') }}
86+
line_length = {{ cookiecutter.line_length }}
87+
8588
known_typing = "typing,types,typing_extensions,mypy,mypy_extensions"
8689
sections = "FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
8790
include_trailing_comma = true
8891
multi_line_output = 3
8992
indent = 4
9093
force_grid_wrap = 0
9194
use_parentheses = true
92-
line_length = {{ cookiecutter.line_length }}
9395

9496
[tool.mypy]
9597
# mypy configurations: https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
9698
python_version = {{ cookiecutter.minimal_python_version }}
9799
pretty = true
100+
98101
allow_redefinition = false
99102
check_untyped_defs = true
100103
disallow_any_generics = true
101104
disallow_incomplete_defs = true
102105
ignore_missing_imports = true
103106
implicit_reexport = false
104-
strict_optional = true
105-
strict_equality = true
106107
no_implicit_optional = true
108+
show_column_numbers = true
109+
show_error_codes = true
110+
show_error_context = true
111+
strict_equality = true
112+
strict_optional = true
107113
warn_no_return = true
108-
warn_unused_ignores = true
109114
warn_redundant_casts = true
110-
warn_unused_configs = true
111115
warn_return_any = true
112116
warn_unreachable = true
113-
show_error_codes = true
114-
show_column_numbers = true
115-
show_error_context = true
117+
warn_unused_configs = true
118+
warn_unused_ignores = true

0 commit comments

Comments
 (0)