Skip to content

Commit 5faa935

Browse files
authored
Setup shed (#76)
Committed via https://github.com/asottile/all-repos
1 parent 9e85e05 commit 5faa935

File tree

3 files changed

+28
-33
lines changed

3 files changed

+28
-33
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
8+
[*.py]
9+
indent_style = space
10+
indent_size = 4
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
max_line_length = 88

.pre-commit-config.yaml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,23 @@ repos:
88
rev: v1.3.0
99
hooks:
1010
- id: yesqa
11-
- repo: https://github.com/PyCQA/isort
12-
rev: '5.10.1'
11+
- repo: https://github.com/sondrelg/pep585-upgrade
12+
rev: v1.0.1
1313
hooks:
14-
- id: isort
15-
- repo: https://github.com/psf/black
16-
rev: '21.12b0'
14+
- id: upgrade-type-hints
15+
args:
16+
- --futures=true
17+
- repo: https://github.com/Zac-HD/shed
18+
rev: 0.6.0
1719
hooks:
18-
- id: black
19-
language_version: python3 # Should be a command that runs python3.6+
20+
- id: shed
21+
args:
22+
- --refactor
23+
- --py39-plus
24+
types_or:
25+
- python
26+
- markdown
27+
- rst
2028
- repo: https://github.com/pre-commit/pre-commit-hooks
2129
rev: 'v4.0.1'
2230
hooks:
@@ -38,20 +46,6 @@ repos:
3846
files: |
3947
docs/spelling_wordlist.txt|
4048
.gitignore
41-
- repo: https://github.com/sondrelg/pep585-upgrade
42-
rev: 'v1.0.1'
43-
hooks:
44-
- id: upgrade-type-hints
45-
- repo: https://github.com/asottile/pyupgrade
46-
rev: 'v2.29.1'
47-
hooks:
48-
- id: pyupgrade
49-
args: ['--py39-plus']
50-
- repo: https://github.com/PyCQA/flake8
51-
rev: '4.0.1'
52-
hooks:
53-
- id: flake8
54-
exclude: "^docs/"
5549
- repo: https://github.com/rhysd/actionlint
5650
rev: v1.6.8
5751
hooks:

setup.cfg

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@ packages = find:
1717
install_requires =
1818
aiohttp>=3.8.1
1919

20-
[flake8]
21-
exclude = .git,.env,.venv,__pycache__,.mypy_cache,.eggs
22-
max-line-length = 88
23-
24-
[isort]
25-
line_length=88
26-
include_trailing_comma=True
27-
multi_line_output=3
28-
force_grid_wrap=0
29-
combine_as_imports=True
30-
lines_after_imports=2
31-
3220
[tool:pytest]
3321
addopts=
3422
-vv

0 commit comments

Comments
 (0)