Skip to content

Commit ce2fcac

Browse files
committed
added all config files
0 parents  commit ce2fcac

File tree

6 files changed

+54
-0
lines changed

6 files changed

+54
-0
lines changed

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
ignore = E203, E266, E501, W503, F403, F401
3+
max-line-length = 100
4+
max-complexity = 18
5+
select = B,C,E,F,W,T4,B9

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
venv

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
repos:
2+
3+
- repo: https://github.com/ambv/black
4+
rev: stable
5+
hooks:
6+
- id: black
7+
8+
- repo: https://gitlab.com/pycqa/flake8
9+
rev: 4.0.1
10+
hooks:
11+
- id: flake8
12+
13+
- repo: https://github.com/timothycrosley/isort
14+
rev: 5.10.1
15+
hooks:
16+
- id: isort
17+
args: ["--profile", "black", "--filter-files"]

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Summary
2+
3+
Basically, a repository with hooks pre-commit using:
4+
5+
- `Black`: A Python code formatter
6+
- `Flake8`: A code checker for your Python code
7+
- `isort`: A Python library for sorting imports
8+
9+
## Notes
10+
11+
The settings made here are not 100% in compliance with PEP8. I personally think that 79 characters for a line length are not enough and rather use 100 instead.

pyproject.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[tool.black]
2+
line-length = 100
3+
include = '\.pyi?$'
4+
exclude = '''
5+
/(
6+
\.git
7+
| \.hg
8+
| \.mypy_cache
9+
| \.tox
10+
| \.venv
11+
| _build
12+
| buck-out
13+
| build
14+
| dist
15+
)/
16+
'''
17+
18+
[tool.isort]
19+
profile = "black"
20+
src_paths = ["isort", "test"]

requirements.txt

130 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)