Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 13751c3

Browse files
authoredSep 29, 2022
Merge pull request #3 from CaedenPH/main
Improve formatting and linting
2 parents 2cba7d7 + 540a8f5 commit 13751c3

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed
 

‎.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.5.0
4+
hooks:
5+
- id: check-toml
6+
- id: check-yaml
7+
- id: end-of-file-fixer
8+
- id: trailing-whitespace
9+
args: [--markdown-linebreak-ext=md]
10+
11+
- repo: https://github.com/pre-commit/pygrep-hooks
12+
rev: v1.5.1
13+
hooks:
14+
- id: python-check-blanket-noqa
15+
16+
- repo: https://github.com/PyCQA/isort
17+
rev: 5.10.1
18+
hooks:
19+
- id: isort
20+
21+
- repo: https://github.com/pycqa/flake8
22+
rev: 4.0.1
23+
hooks:
24+
- id: flake8
25+
additional_dependencies:
26+
- flake8-docstrings~=1.6.0
27+
28+
- repo: https://github.com/psf/black
29+
rev: 21.12b0
30+
hooks:
31+
- id: black
32+
name: Running black in all files.

‎dev-requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
flake8~=4.0.1
2+
isort~=5.10.1
3+
pre-commit~=2.17.0
4+
5+
# Flake8 plugins
6+
flake8-docstrings~=1.6.0

‎tox.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[flake8]
2+
max-line-length=119
3+
exclude=.venv,__pycache__
4+
ignore=
5+
W503,E226,
6+
# Missing Docstrings
7+
D100,D104,D105,D106,D107,
8+
# Docstring Whitespace
9+
D203,D212,D214,D215,
10+
# Docstring Quotes
11+
D301,D302,
12+
# Docstring Content
13+
D400,D401,D402,D404,D405,D406,D407,D408,D409,D410,D411,D412,D413,D414,D416,D417,
14+
# Comments
15+
E266
16+
17+
[isort]
18+
multi_line_output=5

0 commit comments

Comments
 (0)