Skip to content

Commit 17526ee

Browse files
authored
solves #98 (#99)
1 parent 92298bd commit 17526ee

36 files changed

+19
-4151
lines changed

.github/workflows/mkdocs-deploy.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
with:
1414
python-version: 3.x
1515
- name: Install python action for doc extraction
16-
run: pip install . -r docs/requirements.txt
16+
run: pip install -r docs/requirements.txt
1717
- name: check mkdocs build
18-
if: github.ref != 'refs/heads/master'
18+
# if: github.ref != 'refs/heads/master'
1919
run: mkdocs build
20-
- name: Build docs and deploy to gh-pages
21-
if: github.ref == 'refs/heads/master'
22-
run: |
23-
git config user.name 'github-actions'
24-
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
25-
mkdocs gh-deploy --force
20+
# - name: Build docs and deploy to gh-pages
21+
# if: github.ref == 'refs/heads/master'
22+
# run: |
23+
# git config user.name 'github-actions'
24+
# git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
25+
# mkdocs gh-deploy --force

.github/workflows/publish-pypi.yml

-51
This file was deleted.

.github/workflows/run-dev-tests.yml

-113
This file was deleted.

.gitpod.yml

-2
This file was deleted.

.pre-commit-config.yaml

-28
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,5 @@ repos:
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
7-
- id: check-docstring-first
87
- id: check-added-large-files
98
- id: check-yaml
10-
- id: check-toml
11-
- id: requirements-txt-fixer
12-
- repo: https://github.com/python/black
13-
rev: '22.6.0'
14-
hooks:
15-
- id: black
16-
args: ["--diff"]
17-
- repo: https://github.com/pycqa/pylint
18-
rev: v2.14.5
19-
hooks:
20-
- id: pylint
21-
name: pylint (action code)
22-
types: [python]
23-
exclude: "^(docs/|tests/|setup.py$)"
24-
additional_dependencies: [pyyaml, requests]
25-
- repo: local
26-
# this is a "local" hook to run mypy (see https://pre-commit.com/#repository-local-hooks)
27-
# because the mypy project doesn't seem to be compatible with pre-commit hooks
28-
hooks:
29-
- id: mypy
30-
name: mypy
31-
description: type checking with mypy tool
32-
language: python
33-
types: [python]
34-
entry: mypy
35-
exclude: "^(docs/|setup.py$)"
36-
additional_dependencies: [mypy, types-pyyaml, types-requests, rich, requests, pytest, pyyaml, '.']

Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ LABEL maintainer="shenxianpeng <[email protected]>"
1414

1515
RUN apt-get update && apt-get -y install python3-pip
1616

17-
COPY cpp_linter/ pkg/cpp_linter/
18-
COPY pyproject.toml pkg/pyproject.toml
19-
RUN python3 -m pip install pkg/
17+
RUN python3 -m pip install cpp-linter
2018

2119
# github action args use the CMD option
2220
# See https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsargs

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/cpp-linter/cpp-linter-action/cpp-linter?label=cpp-linter&logo=Github&style=flat-square)](https://github.com/cpp-linter/cpp-linter-action/actions/workflows/cpp-linter.yml)
88
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/cpp-linter/cpp-linter-action/MkDocs%20Deploy?label=docs&logo=Github&style=flat-square)](https://github.com/cpp-linter/cpp-linter-action/actions/workflows/mkdocs-deploy.yml)
99
![GitHub](https://img.shields.io/github/license/cpp-linter/cpp-linter-action?label=license&logo=github&style=flat-square)
10-
[![codecov](https://codecov.io/gh/cpp-linter/cpp-linter-action/branch/master/graph/badge.svg?token=4SF7UEDEZ2)](https://codecov.io/gh/cpp-linter/cpp-linter-action)
1110

1211
A Github Action for linting C/C++ code integrating clang-tidy and clang-format to collect feedback provided in the form of thread comments and/or annotations.
1312

@@ -187,7 +186,7 @@ jobs:
187186
directory: ${{ runner.temp }}/llvm
188187

189188
- name: Install linter python package
190-
run: python3 -m pip install git+https://github.com/cpp-linter/cpp-linter-action@v1
189+
run: python3 -m pip install cpp-linter
191190

192191
- name: run linter as a python package
193192
id: linter
@@ -219,7 +218,7 @@ is equivalent to
219218
220219
```yaml
221220
- name: Install linter python package
222-
run: python3 -m pip install git+https://github.com/cpp-linter/cpp-linter-action@v1
221+
run: python3 -m pip install cpp-linter
223222

224223
- name: run linter as a python package
225224
run: |

0 commit comments

Comments
 (0)