Skip to content

Commit 90ab040

Browse files
committed
feat: basic python package setup
1 parent d3f4b78 commit 90ab040

File tree

8 files changed

+43
-0
lines changed

8 files changed

+43
-0
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 127

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.egg-info
2+
*.py[co]
3+
.coverage

conventional_pre_commit/__init__.py

Whitespace-only changes.

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=42",
4+
"wheel"
5+
]
6+
build-backend = "setuptools.build_meta"
7+
8+
[tool.black]
9+
line-length = 127
10+
target-version = ['py38']
11+
include = '\.pyi?$'

setup.cfg

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[metadata]
2+
name = conventional_pre_commit
3+
version = v2.0.0
4+
description = A pre-commit hook that checks commit messages for Conventional Commits formatting.
5+
long_description = file: README.md
6+
long_description_content_type = text/markdown
7+
url = https://github.com/compilerla/conventional-pre-commit
8+
author = Compiler LLC
9+
author_email = [email protected]
10+
license = Apache 2.0
11+
license_file = LICENSE
12+
classifiers =
13+
License :: OSI Approved :: Apache Software License
14+
Programming Language :: Python :: 3
15+
16+
[options]
17+
packages = find:
18+
python_requires = >=3.7
19+
20+
[options.packages.find]
21+
exclude =
22+
tests*

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from setuptools import setup
2+
3+
setup()

tests/__init__.py

Whitespace-only changes.

tests/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pytest
2+
pytest-cov

0 commit comments

Comments
 (0)