Skip to content

fix: gp and feat: Commitizen and pre-commit hooks #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jan 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
image:
file: .gitpod.Dockerfile
# image:
# file: .gitpod.Dockerfile
image: axonasif/gitpod-workspace-images:tkinter_vnc_full

tasks:
- name: TimerX
Expand All @@ -8,9 +9,13 @@ tasks:
# PS: App doesn't work here since "_tkinter" is unavailable

- name: Website
before: cd docs
before: cd docs && nvm install 14
init: yarn install
command: yarn start

- name: Initialize `cz` and `pre-commit`
init: cd /workspace/TimerX
command: pip install -r requirements-dev.txt && pre-commit install && pre-commit run

ports:
- port: 3000
Expand Down
2 changes: 2 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
known_third_party = cx_Freeze,darkdetect,playsound
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
repos:
- hooks:
- id: commitizen
stages:
- commit-msg
repo: https://github.com/commitizen-tools/commitizen
rev: v2.20.3

- repo: https://github.com/ambv/black
rev: 21.12b0
hooks:
- id: black
language_version: python3.8
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.4.2
hooks:
- id: isort

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[tool]
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.9"
tag_format = "v$version"
5 changes: 3 additions & 2 deletions pyvenv.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
home = C:\Users\suchi\AppData\Local\Programs\Python\Python310
# We recommend users to create a custom environment variable for Python's path and version
home = %PYTHON_PATH%
include-system-site-packages = false
version = 3.10.0
version = %PYTHON_VERSION%
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
commitizen
pre-commit