chore(commitlint): add commitlint & commitizen
-
This commit is contained in:
parent
ffa6923e66
commit
2311009b87
12 changed files with 2786 additions and 45 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ venv
|
||||||
private
|
private
|
||||||
__pycache__
|
__pycache__
|
||||||
*.out
|
*.out
|
||||||
|
node_modules
|
||||||
|
|
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx pretty-quick --staged
|
4
.husky/prepare-commit-msg
Executable file
4
.husky/prepare-commit-msg
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
exec < /dev/tty && node_modules/.bin/cz --hook || true
|
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -7,7 +7,10 @@
|
||||||
"**/CVS": true,
|
"**/CVS": true,
|
||||||
"**/.DS_Store": true,
|
"**/.DS_Store": true,
|
||||||
"**/Thumbs.db": true,
|
"**/Thumbs.db": true,
|
||||||
|
"node_modules": true,
|
||||||
"euler/node_modules": true,
|
"euler/node_modules": true,
|
||||||
"euler/python_archive": true
|
"euler/python_archive": true,
|
||||||
|
"commitlint.config.js": true,
|
||||||
|
"**/pnpm-lock.yaml": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
commitlint.config.js
Normal file
2
commitlint.config.js
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
// todo: custom commitlint types
|
||||||
|
module.exports = { extends: ['@commitlint/config-conventional'] };
|
3
euler/.gitignore
vendored
3
euler/.gitignore
vendored
|
@ -1,4 +1 @@
|
||||||
node_modules
|
|
||||||
.yarn/cache
|
|
||||||
.yarn/install-state.gz
|
|
||||||
build
|
build
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
yarnPath: .yarn/releases/yarn-3.1.0.cjs
|
|
||||||
nodeLinker: node-modules
|
|
|
@ -1,16 +0,0 @@
|
||||||
below = 1000
|
|
||||||
multiplesOf = [3,5]
|
|
||||||
toAdd = []
|
|
||||||
|
|
||||||
for i in range(1, below):
|
|
||||||
for num in multiplesOf:
|
|
||||||
if i % num == 0:
|
|
||||||
toAdd.append(i)
|
|
||||||
|
|
||||||
toAdd = list(dict.fromkeys(toAdd))
|
|
||||||
total = 0
|
|
||||||
|
|
||||||
for i in toAdd:
|
|
||||||
total += i
|
|
||||||
|
|
||||||
print(total)
|
|
|
@ -1,13 +0,0 @@
|
||||||
sequence = [1, 2]
|
|
||||||
|
|
||||||
while sequence[len(sequence) - 1] < 4000000:
|
|
||||||
sequence.append(sequence[len(sequence) - 1] + sequence[len(sequence) - 2])
|
|
||||||
sequence.pop()
|
|
||||||
|
|
||||||
total = 0
|
|
||||||
|
|
||||||
for i in sequence:
|
|
||||||
if i % 2 == 0:
|
|
||||||
total += i
|
|
||||||
|
|
||||||
print(total)
|
|
|
@ -1,10 +0,0 @@
|
||||||
n = 600851475143
|
|
||||||
i = 2
|
|
||||||
|
|
||||||
while i * i <= n:
|
|
||||||
if n % i:
|
|
||||||
i += 1
|
|
||||||
else:
|
|
||||||
n //= i
|
|
||||||
|
|
||||||
print(n)
|
|
26
package.json
Normal file
26
package.json
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
"name": "the-honk",
|
||||||
|
"config": {
|
||||||
|
"commitizen": {
|
||||||
|
"path": "@commitlint/cz-commitlint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"prepare": "husky install"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "^16.0.1",
|
||||||
|
"@commitlint/config-conventional": "^16.0.0",
|
||||||
|
"@commitlint/cz-commitlint": "^16.0.0",
|
||||||
|
"@types/node": "^17.0.6",
|
||||||
|
"commitizen": "^4.2.4",
|
||||||
|
"husky": "^7.0.4",
|
||||||
|
"inquirer": "^8.2.0",
|
||||||
|
"prettier": "^2.5.1",
|
||||||
|
"pretty-quick": "^3.1.3"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/node": "^17.0.6",
|
||||||
|
"inquirer": "^8.2.0"
|
||||||
|
}
|
||||||
|
}
|
2745
pnpm-lock.yaml
Normal file
2745
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue