Skip to content

Commit

Permalink
adding pre-commit and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
RiesBen committed Aug 18, 2024
1 parent e18c6ab commit 5408678
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
18 changes: 14 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,25 @@ authors=[
{name="Richard J Gowers", email="[email protected]"},
]
dependencies = [
'numpy',
'networkx',
'gufe',
'numpy',
'rdkit',
'networkx',
'scikit-mol',
'scikit-learn',
'ipycytoscape'
]

[project.optional-dependencies]
test = [
'pytest',
'pytest-cov[all]'
]
dev = [
'black',
'pre-commit'
]

description="Konnektor is a package for calculating networks."
readme="README.md"
requires-python = ">=3.9"
Expand All @@ -49,10 +60,9 @@ dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"

[tool.versioningit.vcs]
method = "git"
method = "git"
match = ["*"]
default-tag = "0.0.0"

[tool.versioningit.write]
file = "src/konnektor/_version.py"

0 comments on commit 5408678

Please sign in to comment.