Skip to content

Commit

Permalink
chore: set up dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
andnp committed Mar 28, 2022
1 parent 93118cf commit 65be5d9
Show file tree
Hide file tree
Showing 8 changed files with 887 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__pycache__/
.vscode/
*.pyc
.mypy_cache

env/
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.21.2
hooks:
- id: commitizen
stages:
- commit-msg
18 changes: 18 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
numba = "*"
numpy = "*"
matplotlib = "*"

[dev-packages]
flake8 = "*"
commitizen = "*"
pre-commit = "*"
pipenv-setup = {extras = ["black"], version = "*"}

[requires]
python_version = "3.9"
825 changes: 825 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[tool]
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.1.0"
tag_format = "$version"
version_files = ["setup.py"]
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-complexity = 10
exclude = .git,__pycache__,env
ignore = E741,E302,E501,E402,E305,E201,E202,E731,E701,E704
15 changes: 15 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from setuptools import setup, find_packages

setup(
name="ProjectedBellmanErrors",
url="https://github.com/rlai-lab/Generalized-Projected-Bellman-Errors.git",
author="Andy Patterson",
author_email="[email protected]",
packages=find_packages(exclude=["tests*"]),
install_requires=[],
version='0.0.0',
license="MIT",
description="",
long_description="todo",
extras_require={},
)
2 changes: 2 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pipenv sync --dev
pre-commit install -t pre-commit -t commit-msg

0 comments on commit 65be5d9

Please sign in to comment.