Skip to content

Commit 0c73a65

Browse files
authored
update template
1 parent d1702e4 commit 0c73a65

File tree

4 files changed

+31
-14
lines changed

4 files changed

+31
-14
lines changed

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/iterative/py-template",
3-
"commit": "5fb8af99d07678287dfc10ad1394452b57d23970",
3+
"commit": "c4e24f909659b6ce9c34a1da631290f0c70ff2f2",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.pre-commit-config.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ default_language_version:
22
python: python3
33
repos:
44
- repo: https://github.com/psf/black
5-
rev: 22.8.0
5+
rev: 23.1.0
66
hooks:
77
- id: black
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v4.3.0
9+
rev: v4.4.0
1010
hooks:
1111
- id: check-added-large-files
1212
- id: check-case-conflict
@@ -29,21 +29,27 @@ repos:
2929
- id: codespell
3030
additional_dependencies: ["tomli"]
3131
- repo: https://github.com/asottile/pyupgrade
32-
rev: v2.38.0
32+
rev: v3.3.1
3333
hooks:
3434
- id: pyupgrade
35+
args: [--py38-plus]
3536
- repo: https://github.com/PyCQA/isort
36-
rev: 5.10.1
37+
rev: 5.12.0
3738
hooks:
3839
- id: isort
3940
- repo: https://github.com/pycqa/flake8
40-
rev: 5.0.4
41+
rev: 6.0.0
4142
hooks:
4243
- id: flake8
4344
additional_dependencies:
45+
<<<<<<<
4446
- flake8-broken-line==0.5.0
4547
- flake8-bugbear==22.9.11
4648
- flake8-comprehensions==3.10.0
49+
=======
50+
- flake8-bugbear==23.1.20
51+
- flake8-comprehensions==3.10.1
52+
>>>>>>>
4753
- flake8-debugger==4.1.2
4854
- flake8-string-format==0.3.0
4955
- repo: https://github.com/pycqa/bandit

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[tool.setuptools_scm]
66

77
[tool.black]
8-
line-length = 79
8+
line-length = 88
99
include = '\.pyi?$'
1010
exclude = '''
1111
/(
@@ -25,7 +25,7 @@ exclude = '''
2525
[tool.isort]
2626
profile = "black"
2727
known_first_party = ["morefs"]
28-
line_length = 79
28+
line_length = 88
2929

3030
[tool.pytest.ini_options]
3131
addopts = "-ra"
@@ -64,6 +64,9 @@ warn_unreachable = true
6464
ignore_missing_imports = true
6565
files = ["src", "tests"]
6666

67+
[tool.pylint.format]
68+
max-line-length = 88
69+
6770
[tool.pylint.message_control]
6871
disable = [
6972
"format", "refactoring", "spelling", "design", "invalid-name",
@@ -79,7 +82,11 @@ dummy-variables-rgx = "_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unuse
7982
ignored-argument-names = "_.*|^ignored_|^unused_|args|kwargs"
8083

8184
[tool.codespell]
85+
<<<<<<<
8286
ignore-words-list = "fo,cachable"
87+
=======
88+
ignore-words-list = " "
89+
>>>>>>>
8390

8491
[tool.bandit]
8592
exclude_dirs = ["tests"]

setup.cfg

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ all =
3939
%(memfs)s
4040
%(asynclocalfs)s
4141
tests =
42-
pytest==7.1.2
42+
pytest==7.2.0
4343
pytest-sugar==0.9.5
4444
pytest-cov==3.0.0
4545
pytest-mock==3.8.2
@@ -67,12 +67,16 @@ where=src
6767

6868
[flake8]
6969
ignore=
70-
E203, # Whitespace before ':'
71-
E266, # Too many leading '#' for block comment
72-
W503, # Line break occurred before a binary operator
73-
P1, # unindexed parameters in the str.format, see:
70+
# Whitespace before ':'
71+
E203
72+
# Too many leading '#' for block comment
73+
E266
74+
# Line break occurred before a binary operator
75+
W503
76+
# unindexed parameters in the str.format, see:
7477
# https://pypi.org/project/flake8-string-format/
75-
max_line_length = 79
78+
P1
79+
max_line_length = 88
7680
max-complexity = 15
7781
select = B,C,E,F,W,T4,B902,T,P
7882
show_source = true

0 commit comments

Comments
 (0)