You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Install your local copy into a ``virtualenv``. Assuming you have
74
-
``virtualenvwrapper`` installed, this is how you set up your fork for local
75
-
development::
73
+
3. Install your local copy into a ``virtualenv``. It is recommended to use standard ``venv``::
76
74
77
-
$ mkvirtualenv snappass
75
+
$ python -m venv venv
76
+
$ source venv/bin/activate
78
77
$ cd snappass/
79
-
$ python setup.py develop
78
+
$ pip install -e .
80
79
$ make dev
81
80
82
81
4. Create a branch for local development::
@@ -92,29 +91,19 @@ Here's how to set up ``snappass`` for local development.
92
91
93
92
You now have a running instance on localhost:5000/
94
93
95
-
6. Please add some tests to tests.py and run tests::
94
+
6. Please add some tests to tests.py. When you're done making changes, check that your changes pass all tests and security linters (Ruff, Pip-Audit, etc.)::
96
95
97
96
$ make test
98
97
99
-
7. When you're done making changes, check that your changes pass the tests and
100
-
flake8::
98
+
(Tox will automatically run all linting, security scans, and tests with coverage output.)
101
99
102
-
$ flake8 snappass tests.py setup.py
103
-
$ tox
104
-
105
-
8. Check that the test coverage hasn't dropped::
106
-
107
-
$ coverage run --source snappass tests.py
108
-
$ coverage report -m
109
-
$ coverage html
110
-
111
-
9. Commit your changes and push your branch to GitHub::
100
+
7. Commit your changes and push your branch to GitHub::
112
101
113
102
$ git add .
114
103
$ git commit -m "Your detailed description of your changes."
115
104
$ git push origin name-of-your-bugfix-or-feature
116
105
117
-
10. Submit a pull request through the GitHub website.
106
+
8. Submit a pull request through the GitHub website.
0 commit comments