Skip to content

Commit 9258acc

Browse files
committed
add more pre-commit hooks
1 parent 33f21c6 commit 9258acc

4 files changed

Lines changed: 33 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
1+
exclude: ^static/.*|assets/.*|/migrations/.*|\.min\.js$|\.min\.css$|\.css\.map$|\.min\.js$|\.js\.map$|\.svg$
12
repos:
23
- repo: https://github.com/pycqa/isort
34
rev: 5.12.0
45
hooks:
56
- id: isort
67
name: isort (python)
8+
args: ["--filter-files", "--profile", "black", "--line-length=120"]
79
- repo: https://github.com/psf/black
810
rev: 23.1.0
911
hooks:
1012
- id: black
13+
args: ["--line-length=120"]
1114
language_version: python3.9
15+
- repo: https://github.com/pre-commit/pre-commit-hooks
16+
rev: v4.3.0
17+
hooks:
18+
- id: check-added-large-files
19+
args: [--maxkb=2048]
20+
- id: check-toml
21+
types: [toml]
22+
- id: check-yaml
23+
types: [yaml]
24+
- id: end-of-file-fixer
25+
types: [text]
26+
stages: [commit, push, manual]
27+
- id: trailing-whitespace
28+
types: [text]
29+
stages: [commit, push, manual]
30+
- repo: https://github.com/pre-commit/mirrors-prettier
31+
rev: v2.7.1
32+
hooks:
33+
- id: prettier
34+
exclude: taskbadger.yaml
35+
- repo: https://github.com/rtts/djhtml
36+
rev: v2.0.0
37+
hooks:
38+
- id: djhtml
39+
args: [--tabwidth=2]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Task Badger Python Client
2+
23
This is the official Python SDK for [Task Badger](https://taskbadger.net/)
34

45
---

generator_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project_name_override: taskbadger-python
22
package_name_override: taskbadger/internal
33
post_hooks:
4-
- "autoflake -i -r --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports ."
5-
- "isort ."
6-
- "black ."
4+
- "autoflake -i -r --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports ."
5+
- "isort ."
6+
- "black ."

taskbadger/internal/py.typed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Marker file for PEP 561
1+
# Marker file for PEP 561

0 commit comments

Comments
 (0)