-
Notifications
You must be signed in to change notification settings - Fork 1
Developer Guide
A guide for me, and for everyone who wants to contribute to kefir, how to properly contribute kefir.
In the beginning, just follow the instructions from here. But I'll still reproduce.
just touch Fork button
git clone https://github.com/Yourun-proger/kefir.git
cd kefir
git remote add fork https://github.com/{your_name}/kefir.git
git fetch origin
git checkout -b your_branch
On Windows:
> py -m venv env
> env\scripts\activate
On MacOS/Linux:
$ python3 -m venv env
$ . env/bin/activate
py -m pip install -U pip setuptools
On Unix-based you need python
or python3
instead of py
pip install tox==3.24.5
That's all about setup
- Your change
- do your change
- write about changes in the changelog
2. Push it to main right nooow!!!
True 2.
$ tox -e py{your_version}
your_version = 38 if you have 3.8 e.t.c.
$ tox -e lint
If not all is ok run black:
$ tox -e format
-
Commit changes with good commit message (len <= 35)
-
Push it to branch or to main =_=
Just touch Compare and create pull request button. Now all PR go to main branch
Just wait. Or do some fix if i reviewed PR.
I don't know this is really important, but why not. Let's go
git rebase -i HEAD~(num of last commits for squash)
Then you go to vim or emacs or visual studio code or notepad++ or something else, where you try to squash commits.
First commit is better when it isn't changed. Others change to s or to squash.
Then you save message only for first commit, others delete right now!
and finally:
git push -f fork your_branch
Good xp for you and for me