Skip to content

Commit 352c97c

Browse files
committed
break out pre-commit configs into appropriate tool files.
1 parent bda9773 commit 352c97c

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

Diff for: .flake8

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 88

Diff for: .isort.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[settings]
2+
line_length = 88
3+
multi_line_output = 3
4+
include_trailing_comma = True
5+
use_parentheses = True
6+
src_paths = screenpy

Diff for: .pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ files: '(screenpy|examples)/.*'
22
fail_fast: false
33
repos:
44
- repo: https://github.com/psf/black
5-
rev: 22.3.0
5+
rev: 22.8.0
66
hooks:
77
- id: black
88
language_version: python3.10
@@ -12,20 +12,20 @@ repos:
1212
- id: isort
1313
language_version: python3.10
1414
- repo: https://github.com/PyCQA/flake8
15-
rev: 4.0.1
15+
rev: 5.0.4
1616
hooks:
1717
- id: flake8
1818
language_version: python3.10
1919
- repo: https://github.com/pre-commit/mirrors-mypy
20-
rev: v0.950
20+
rev: v0.971
2121
hooks:
2222
- id: mypy
2323
language_version: python3.10
24-
additional_dependencies: ["PyHamcrest>=2.0.0,<2.1", "pytest>=7.0.0,<7.1"]
24+
additional_dependencies: ["PyHamcrest>=2.0.0,<2.1", "pytest>=7.1.3,<7.2"]
2525
- repo: local
2626
hooks:
2727
- id: pylint
2828
name: pylint
29-
entry: pylint --max-line-length=88 --disable=bad-continuation --disable=no-self-use --disable=too-few-public-methods --disable=invalid-name --disable=wrong-import-order --disable=import-error --disable=super-init-not-called --disable=duplicate-code --disable=logging-format-interpolation --disable=logging-fstring-interpolation
29+
entry: pylint
3030
language: system
3131
types: [python]

Diff for: .pylintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[MASTER]
2+
ignore-paths=^.*/tests/.*$
3+
disable=bad-continuation,no-self-use,too-few-public-methods,invalid-name,wrong-import-order,import-error,super-init-not-called,duplicate-code,logging-format-interpolation,logging-fstring-interpolation,useless-super-delegation

Diff for: pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tool.black]
2+
target-version = ['py310']

Diff for: tox.ini

-9
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,3 @@ deps =
1313
typing_extensions
1414
commands =
1515
coverage run --source=screenpy -m pytest {posargs}
16-
17-
[flake8]
18-
max-line-length = 88
19-
20-
[isort]
21-
line_length = 88
22-
multi_line_output = 3
23-
include_trailing_comma = True
24-
use_parentheses = True

0 commit comments

Comments
 (0)