Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
db118b6e
Commit
db118b6e
authored
May 01, 2023
by
Olivier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use ruff instead of flake8 for liting in CI
parent
5b4e4840
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
.github/workflows/python-package.yml
.github/workflows/python-package.yml
+3
-6
No files found.
.github/workflows/python-package.yml
View file @
db118b6e
...
...
@@ -29,15 +29,12 @@ jobs:
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
python -m pip install flake8 pytest mypy
python -m pip install flake8 pytest mypy
ruff
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
-
name
:
Lint with
flake8
-
name
:
Lint with
ruff and mypy
run
:
|
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --statistics
ruff check .
# - name: Lint with mypy
# run: |
python -m pip install types-aiofiles types-python-dateutil types-pytz
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment