Browse Source

Add some things for dev

Dashie der otter 4 months ago
parent
commit
bf8dba198b
3 changed files with 25 additions and 0 deletions
  1. 3
    0
      .isort.cfg
  2. 13
    0
      .pre-commit-config.yaml
  3. 9
    0
      pyproject.toml

+ 3
- 0
.isort.cfg View File

@@ -0,0 +1,3 @@
1
+[settings]
2
+line_length=120
3
+force_single_line=true

+ 13
- 0
.pre-commit-config.yaml View File

@@ -0,0 +1,13 @@
1
+repos:
2
+    - repo: local
3
+      hooks:
4
+          - id: black
5
+            name: black
6
+            language: system
7
+            entry: python3 -m black
8
+            types: [python]
9
+          - id: flake8
10
+            name: flake8
11
+            language: system
12
+            entry: flake8
13
+            types: [python]

+ 9
- 0
pyproject.toml View File

@@ -0,0 +1,9 @@
1
+[tool.black]
2
+exclude = '''
3
+/(
4
+    \.git
5
+  | \.eggs
6
+  | \.idea
7
+  | \__pycache__
8
+)/
9
+'''

Loading…
Cancel
Save