@@ -64,26 +64,36 @@ Ready to contribute? Here's how to set up `stlearn` for local development.
6464
6565 $ git clone git@github.com:your_name_here/stlearn.git
6666
67- 3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
67+ 3. Install your local copy into a virtualenv. This is how you set up your fork for local development::
6868
69- $ mkvirtualenv stlearn
69+ $ conda create -n stlearn-dev python=3.10 --y
70+ $ conda activate stlearn-dev
7071 $ cd stlearn/
71- $ python setup.py develop
72+ $ pip install -e .[dev,test]
73+
74+ Or if you prefer pip/virtualenv::
75+
76+ $ python -m venv stlearn-env
77+ $ source stlearn-env/bin/activate # On Windows: stlearn-env\Scripts\activate
78+ $ cd stlearn/
79+ $ pip install -e .[dev,test]
7280
73814. Create a branch for local development::
7482
7583 $ git checkout -b name-of-your-bugfix-or-feature
7684
7785 Now you can make your changes locally.
7886
79- 5. When you're done making changes, check that your changes pass flake8 and the
80- tests, including testing other Python versions with tox::
87+ 5. When you're done making changes, check that your changes pass linters and tests::
8188
82- $ flake8 stlearn tests
83- $ python setup.py test or pytest
84- $ tox
89+ $ black stlearn tests
90+ $ ruff check stlearn tests
91+ $ mypy stlearn tests
92+ $ pytest
93+
94+ Or run everything with tox::
8595
86- To get flake8 and tox, just pip install them into your virtualenv.
96+ $ tox
8797
88986. Commit your changes and push your branch to GitHub::
8999
0 commit comments