Skip to content

Commit ae9710b

Browse files
committed
chore: add linting/formatting
1 parent 73db845 commit ae9710b

File tree

5 files changed

+31
-1
lines changed

5 files changed

+31
-1
lines changed

.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ls venv &> /dev/null || python3 -mvenv venv || exit 1
2+
source venv/bin/activate || exit 1
3+
pip install -r requirements.txt || exit 1
4+
pre-commit install

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ celerybeat.pid
136136

137137
# Environments
138138
.env
139-
.envrc
140139
.venv
141140
env/
142141
venv/

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/charliermarsh/ruff-pre-commit
3+
rev: 'v0.12.10'
4+
hooks:
5+
- id: ruff
6+
args: ['--fix']
7+
8+
- repo: https://github.com/hhatto/autopep8
9+
rev: 'v2.3.2'
10+
hooks:
11+
- id: autopep8
12+
13+
- repo: https://github.com/pre-commit/mirrors-mypy
14+
rev: 'v1.17.1'
15+
hooks:
16+
- id: mypy
17+
args: ['--strict']
18+
additional_dependencies:
19+
- types-setuptools
20+
- typing_extensions

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ license-files = ["LICEN[CS]E*"]
1919
[project.urls]
2020
Homepage = "https://github.com/sipgate/sipgate-e2e-test-utils"
2121
Issues = "https://github.com/sipgate/sipgate-e2e-test-utils/issues"
22+
23+
[tool.autopep8]
24+
max_line_length = 200
25+
26+
[tool.ruff]
27+
line-length = 200

requirements.txt

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

0 commit comments

Comments
 (0)