-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ready for packaging and distribution
- Loading branch information
Showing
17 changed files
with
124 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Conventional Commit Checker | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, synchronize] | ||
|
||
jobs: | ||
check-for-cc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Conventional Commit Checker | ||
id: conventional-commit-checker | ||
uses: agenthunt/[email protected] | ||
with: | ||
pr-title-regex: '^((build|ci|chore|docs|feat|fix|perf|refactor|revert|style|test)!?(\([a-z0-9-]+\))?: .+)$' | ||
pr-body-regex: '^((?!null)|null.*)\S' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: format | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
python-black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: psf/black@stable | ||
with: # see: https://black.readthedocs.io/en/stable/integrations/github_actions.html | ||
version: "~= 24.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Packages | ||
/clangd_tidy/_dist_ver.py | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from .main_cli import main_cli | ||
from .version import __version__ | ||
|
||
__all__ = ["main_cli", "__version__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .main_cli import main_cli | ||
|
||
main_cli() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from .json_rpc_endpoint import JsonRpcEndpoint | ||
from .lsp_client import LspClient | ||
from .lsp_endpoint import LspEndpoint | ||
from . import lsp_structs | ||
|
||
__all__ = ["JsonRpcEndpoint", "LspClient", "LspEndpoint", "lsp_structs"] |
3 changes: 2 additions & 1 deletion
3
pylspclient/json_rpc_endpoint.py → clangd_tidy/pylspclient/json_rpc_endpoint.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
pylspclient/lsp_client.py → clangd_tidy/pylspclient/lsp_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
pylspclient/lsp_endpoint.py → clangd_tidy/pylspclient/lsp_endpoint.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
try: | ||
from ._dist_ver import __version__ # type: ignore | ||
except ImportError: | ||
try: | ||
from setuptools_scm import get_version # type: ignore | ||
|
||
__version__ = get_version(root="..", relative_to=__file__) | ||
except (ImportError, LookupError): | ||
__version__ = "UNKNOWN" | ||
|
||
__all__ = ["__version__"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[build-system] | ||
requires = ["setuptools>=64", "setuptools-scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "clangd-tidy" | ||
dynamic = ["version"] | ||
dependencies = ["tqdm"] | ||
requires-python = ">=3.8" | ||
authors = [{ name = "lljbash", email = "[email protected]" }] | ||
description = "A faster alternative to clang-tidy" | ||
readme = "README.md" | ||
keywords = ["clang-tidy", "clangd", "static-analysis", "cpp"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: POSIX", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Topic :: Software Development :: Quality Assurance", | ||
] | ||
|
||
[project.scripts] | ||
clangd-tidy = "clangd_tidy:main_cli" | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/lljbash/clangd-tidy" | ||
"Bug Tracker" = "https://github.com/lljbash/clangd-tidy/issues" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "clangd_tidy/_dist_ver.py" | ||
|
||
[tool.black] | ||
include = '\.pyi?$' | ||
extend-exclude = 'pylspclient' | ||
required-version = "24" |