Skip to content

Commit a4f8c90

Browse files
authored
Update readme and format code (#17)
* Format README.rst * Update with running pre-commit * Autoupdate pre-commit * Remove reorder_python_imports hook * Format yaml files
1 parent 9ffdad5 commit a4f8c90

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

.github/workflows/python-publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ jobs:
4949
TWINE_USERNAME: __token__
5050
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
5151
run: twine upload dist/*
52-

.github/workflows/python-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: build wheel
4848
run: python -m pip wheel -w dist .
49-
49+
5050
- name: upload wheel as artifact
5151
uses: actions/upload-artifact@v3
5252
with:

.pre-commit-config.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: 1f6de3d70391131fac4b911ae913c568e571e34e
3+
rev: v4.3.0
44
hooks:
55
- id: trailing-whitespace
66
exclude: \.output
@@ -11,17 +11,12 @@ repos:
1111
- id: check-yaml
1212
- id: debug-statements
1313
- id: requirements-txt-fixer
14-
- repo: https://github.com/asottile/reorder_python_imports
15-
rev: v3.7.0
16-
hooks:
17-
- id: reorder-python-imports
18-
language_version: python3
1914
- repo: https://github.com/asottile/pyupgrade
20-
rev: v1.16.1
15+
rev: v2.37.3
2116
hooks:
2217
- id: pyupgrade
2318
- repo: https://github.com/pycqa/flake8
24-
rev: '4.0.1'
19+
rev: '5.0.4'
2520
hooks:
2621
- id: flake8
2722
args: [--max-line-length=120]

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ clang-tools Introduction
1111
:target: https://codecov.io/gh/cpp-linter/clang-tools-pip
1212
:alt: codecov
1313
.. image:: https://img.shields.io/badge/platform-linux--64%20%7C%20win--64%20%7C%20osx--64%20-blue
14-
:target: https://pypi.org/project/clang-tools/)
14+
:target: https://pypi.org/project/clang-tools/
1515
:alt: Platfrom
1616
.. image:: https://img.shields.io/pypi/dw/clang-tools
17+
:target: https://pypistats.org/packages/clang-tools
1718
:alt: PyPI - Downloads
1819

1920

@@ -37,7 +38,7 @@ Install
3738
./env-name/Scripts/activate
3839
3940
This will ensure that
40-
41+
4142
1. there are no permission problems when installing the tool
4243
2. the installed path (for MacOS and Windows) is within the environment's
4344
variable ``PATH``.
@@ -62,13 +63,12 @@ Usage
6263
usage: clang-tools [-h] [-i INSTALL] [-d DIRECTORY] [-f]
6364
6465
optional arguments:
65-
-h, --help show this help message and exit
66-
-i INSTALL, --install INSTALL
66+
-h, --help show this help message and exit
67+
-i INSTALL, --install INSTALL
6768
Install clang-tools with specific version. default is 13.
68-
-d DIRECTORY, --directory DIRECTORY
69+
-d DIRECTORY, --directory DIRECTORY
6970
The directory where is the clang-tools install.
70-
-f Force overwriting the symlink to the installed binary. This will only overwrite an existing
71-
symlink.
71+
-f Force overwriting the symlink to the installed binary. This will only overwrite an existing symlink.
7272
7373
Use ``clang-tools`` command to install version 13 binaries.
7474

0 commit comments

Comments
 (0)