Skip to content

Commit a80b7c4

Browse files
committed
feat: Version 1.2.0, new 'rule', 'option' and 'argument' classes, Python 3.10+ type-hinting, restructured 'group' and 'command', improved documentation, more tests and added mypy and more config
1 parent 6a0c7e2 commit a80b7c4

23 files changed

+4345
-245
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Other
22
.DS_Store
3+
/test.py
34

45
# Byte-compiled / optimized / DLL files
56
__pycache__/

.pre-commit-config.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,28 @@ repos:
66
entry: bash -c 'PYTHONPATH=./ pytest --verbosity=0'
77
language: system
88
types: [python]
9+
pass_filenames: false
10+
- id: mypy
11+
name: Run mypy type checking
12+
entry: bash -c 'python -m mypy click_with_aliasing'
13+
language: system
14+
types: [python]
15+
pass_filenames: false
916
- id: pylint
1017
name: Run pylint with a minimum score of 9
11-
entry: bash -c 'pylint . --fail-under=9'
18+
entry: bash -c 'pylint click_with_aliasing --fail-under=9'
19+
language: system
20+
types: [python]
21+
pass_filenames: false
22+
- id: black-check
23+
name: Check code formatting with black
24+
entry: bash -c 'black --check . || (echo "Run black . to fix formatting" && exit 1)'
25+
language: system
26+
types: [python]
27+
pass_filenames: false
28+
- id: isort-check
29+
name: Check import sorting with isort
30+
entry: bash -c 'isort --check-only . || (echo "Run isort . to fix imports" && exit 1)'
1231
language: system
1332
types: [python]
33+
pass_filenames: false

0 commit comments

Comments
 (0)