Skip to content

Commit 904465a

Browse files
committed
Add pre-commit-config.yaml
1 parent 294ad2c commit 904465a

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 25.9.0
4+
hooks:
5+
- id: black
6+
language_version: python3.13
7+
8+
- repo: https://github.com/pycqa/flake8
9+
rev: 7.3.0
10+
hooks:
11+
- id: flake8
12+
13+
- repo: https://github.com/PyCQA/bandit
14+
rev: 1.8.6
15+
hooks:
16+
- id: bandit
17+
args: ["-r", "pyproxy", "tests", "benchmark"]
18+
exclude: "setup.py"

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from setuptools import setup
22
import os
33

4+
45
def get_version():
56
base_dir = os.path.dirname(__file__)
67
version_path = os.path.join(base_dir, "pyproxy", "__init__.py")
@@ -9,4 +10,5 @@ def get_version():
910
exec(f.read(), version_ns)
1011
return version_ns["__version__"]
1112

12-
setup(version=get_version())
13+
14+
setup(version=get_version())

0 commit comments

Comments
 (0)