Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit df826d2

Browse files
committed
Add pre-commit and Makefile
1 parent 8146711 commit df826d2

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

.pre-commit-config.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: debug-statements
8+
- id: requirements-txt-fixer
9+
- id: check-json
10+
- id: check-yaml
11+
- id: check-ast
12+
- id: check-toml
13+
- id: check-merge-conflict
14+
15+
- repo: https://github.com/psf/black
16+
rev: 21.11b1
17+
hooks:
18+
- id: black
19+
language_version: python3
20+
21+
- repo: https://github.com/asottile/add-trailing-comma
22+
rev: v2.2.0
23+
hooks:
24+
- id: add-trailing-comma
25+
args: [--py36-plus]
26+
27+
- repo: https://github.com/asottile/pyupgrade
28+
rev: v2.29.1
29+
hooks:
30+
- id: pyupgrade
31+
args: [--py36-plus]
32+
33+
- repo: https://github.com/pycqa/isort
34+
rev: 5.10.1
35+
hooks:
36+
- id: isort
37+
args: ["--profile", "black", "--filter-files"]

Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
test:
2+
@pre-commit run --all-files
3+
4+
run:
5+
@python3 -m pyrobot
6+
7+
clean:
8+
@pyclean .

Procfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
worker: python3 -m pyrobot
1+
worker: python3 -m pyrobot

0 commit comments

Comments
 (0)