Skip to content

Commit

Permalink
Merge branch 'main' into fix_typeguard
Browse files Browse the repository at this point in the history
  • Loading branch information
caneff authored Oct 10, 2023
2 parents 0ba2a5a + 909e52a commit 56bfcf6
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
repos:
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
- id: pytest
name: pytest
entry: coverage run -m pytest --typeguard-packages=strictly_typed_pandas,tests
language: system
types: [python]
pass_filenames: false
29 changes: 29 additions & 0 deletions docs/source/contributing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
============
Contributing
============

We welcome contributions! To set up your development environment, we recommend using pyenv. You can find more on how to install ``pyenv`` and ``pyenv-virtualen`` here:

* https://github.com/pyenv/pyenv
* https://github.com/pyenv/pyenv-virtualenv

To set up the environment, run:

.. code-block:: bash
pyenv install 3.11
pyenv virtualenv 3.11 strictly_typed_pandas
pyenv activate strictly_typed_pandas
pip install -r requirements.txt
pip install -r requirements-dev.txt
For a list of currently supported Python versions, we refer to ``.github/workflows/build.yml``.

---------------
Pre-commit hook
---------------
We use ``pre-commit`` to run a number of checks on the code before it is committed. To install the pre-commit hook, run:

.. code-block:: bash
pre-commit install
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
advanced
deepdive_into_dtypes
api
contributing
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ jupyter==1.0.0
sphinx<=7.2.6
sphinx_rtd_theme==1.3.0
nbsphinx==0.9.3
pre-commit==3.4.0

0 comments on commit 56bfcf6

Please sign in to comment.