-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from haplo/pre-commit
Add pre-commit hooks
- Loading branch information
Showing
8 changed files
with
85 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 21.11b1 | ||
hooks: | ||
- id: black | ||
exclude: fixtures | ||
args: [--check, --config=pyproject.toml] | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.910-1 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: [black, types-pkg_resources, types-setuptools, types-toml] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: debug-statements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
The following are instructions to maintain python-lsp-black | ||
|
||
1. Releases are tracked using Github milestones, which can be created and closed | ||
under the `Issues > Milestones` page: https://github.com/python-lsp/python-lsp-black/milestones. | ||
2. If a issue will be fixed as part of a particular release, then its milestone | ||
should be the release-corresponding one. | ||
3. Please make sure that PRs are also tracked under a specific milestone. | ||
4. Please follow the [RELEASE.md](./RELEASE.md) file when making a release. | ||
under the `Issues > Milestones` page: https://github.com/python-lsp/python-lsp-black/milestones. | ||
1. If a issue will be fixed as part of a particular release, then its milestone | ||
should be the release-corresponding one. | ||
1. Please make sure that PRs are also tracked under a specific milestone. | ||
1. Please follow the [RELEASE.md](./RELEASE.md) file when making a release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
To release a new version of python-lsp-black: | ||
|
||
1. git fetch upstream && git checkout upstream/master | ||
2. Close milestone on GitHub | ||
3. git clean -xfdi | ||
4. Update CHANGELOG.md with loghub: `loghub python-lsp/python-lsp-black --milestone vX.X.X` | ||
5. git add -A && git commit -m "Update Changelog" | ||
6. Update release version in ``setup.cfg`` (set release version, remove '.dev0') | ||
7. git add -A && git commit -m "Release vX.X.X" | ||
8. python setup.py sdist | ||
9. python setup.py bdist_wheel | ||
10. twine check dist/* | ||
11. twine upload dist/* | ||
12. git tag -a vX.X.X -m "Release vX.X.X" | ||
13. Update development version in ``setup.cfg`` (add '.dev0' and increment minor) | ||
14. git add -A && git commit -m "Back to work" | ||
15. git push upstream master | ||
16. git push upstream --tags | ||
17. Draft a new release in GitHub using the new tag. | ||
1. Close milestone on GitHub | ||
1. git clean -xfdi | ||
1. Update CHANGELOG.md with loghub: `loghub python-lsp/python-lsp-black --milestone vX.X.X` | ||
1. git add -A && git commit -m "Update Changelog" | ||
1. Update release version in `setup.cfg` (set release version, remove '.dev0') | ||
1. git add -A && git commit -m "Release vX.X.X" | ||
1. python setup.py sdist | ||
1. python setup.py bdist_wheel | ||
1. twine check dist/\* | ||
1. twine upload dist/\* | ||
1. git tag -a vX.X.X -m "Release vX.X.X" | ||
1. Update development version in `setup.cfg` (add '.dev0' and increment minor) | ||
1. git add -A && git commit -m "Back to work" | ||
1. git push upstream master | ||
1. git push upstream --tags | ||
1. Draft a new release in GitHub using the new tag. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters