Skip to content

Commit fc2851a

Browse files
authoredJan 19, 2024
Use ruff as linter and code formatter (#502)
1 parent cb213e0 commit fc2851a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+241
-213
lines changed
 

‎.github/workflows/static.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ jobs:
3838
# If we don't install pycodestyle, pylint will throw an unused-argument error in pylsp/plugins/pycodestyle_lint.py:72
3939
# This error cannot be resolved by adding a pylint: disable=unused-argument comment ...
4040
- run: |
41-
pip install -e .[pylint,pycodestyle,pyflakes]
42-
pip install black
43-
- name: Pylint checks
44-
run: pylint pylsp test
45-
- name: Code style checks with black
46-
run: black --check pylsp test
47-
- name: Pyflakes checks
48-
run: pyflakes pylsp test
41+
pip install -e .[pylint,pycodestyle]
42+
pip install ruff
43+
- name: ruff linter and code style checks
44+
run: ruff check pylsp test
45+
- name: ruff code formatter check
46+
run: ruff format --check pylsp test
4947
- name: Validate JSON schema
5048
run: echo {} | jsonschema pylsp/config/schema.json
5149
- name: Ensure JSON schema and Markdown docs are in sync

‎.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ reports = no
2828

2929
generated-members =
3030
pylsp_*
31-
cache_clear
31+
cache_clear

0 commit comments

Comments
 (0)