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
8dfb533e
Commit
8dfb533e
authored
Oct 15, 2024
by
Roman Yurchak
Committed by
oroulet
Oct 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pre-commit-config
parent
b5a6b607
Changes
40
Show whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
130 additions
and
100 deletions
+130
-100
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/bug_report.md
+1
-1
.github/dependabot.yml
.github/dependabot.yml
+1
-1
.github/workflows/python-package.yml
.github/workflows/python-package.yml
+18
-7
.pre-commit-config.yaml
.pre-commit-config.yaml
+22
-0
.readthedocs.yml
.readthedocs.yml
+1
-1
CHANGELOG.md
CHANGELOG.md
+12
-12
README.md
README.md
+12
-0
asyncua/ua/uaerrors/_auto.py
asyncua/ua/uaerrors/_auto.py
+0
-2
asyncua/ua/uaprotocol_auto.py
asyncua/ua/uaprotocol_auto.py
+1
-1
docs/api/asyncua.client.ha.rst
docs/api/asyncua.client.ha.rst
+0
-1
docs/api/asyncua.client.rst
docs/api/asyncua.client.rst
+0
-1
docs/api/asyncua.common.rst
docs/api/asyncua.common.rst
+0
-1
docs/api/asyncua.crypto.rst
docs/api/asyncua.crypto.rst
+0
-1
docs/api/asyncua.server.rst
docs/api/asyncua.server.rst
+0
-1
docs/api/asyncua.server.standard_address_space.rst
docs/api/asyncua.server.standard_address_space.rst
+0
-1
docs/api/asyncua.ua.uaerrors.rst
docs/api/asyncua.ua.uaerrors.rst
+0
-1
docs/api/index.rst
docs/api/index.rst
+1
-1
docs/index.rst
docs/index.rst
+1
-1
docs/requirements.txt
docs/requirements.txt
+1
-1
docs/usage/client/overview.rst
docs/usage/client/overview.rst
+0
-2
docs/usage/common/node-nodeid.rst
docs/usage/common/node-nodeid.rst
+10
-10
docs/usage/common/overview.rst
docs/usage/common/overview.rst
+0
-2
docs/usage/get-started/installation.rst
docs/usage/get-started/installation.rst
+4
-4
docs/usage/get-started/minimal-client.rst
docs/usage/get-started/minimal-client.rst
+2
-2
docs/usage/get-started/minimal-server.rst
docs/usage/get-started/minimal-server.rst
+5
-5
docs/usage/get-started/opc-ua-basics.rst
docs/usage/get-started/opc-ua-basics.rst
+3
-4
docs/usage/index.rst
docs/usage/index.rst
+4
-4
docs/usage/server/overview.rst
docs/usage/server/overview.rst
+1
-1
docs/usage/sync/overview.rst
docs/usage/sync/overview.rst
+1
-1
schemas/README.md
schemas/README.md
+5
-6
schemas/generate_model_event.py
schemas/generate_model_event.py
+2
-2
schemas/generate_protocol_python.py
schemas/generate_protocol_python.py
+1
-1
tests/custom_extension_with_optional_fields.xml
tests/custom_extension_with_optional_fields.xml
+1
-1
tests/custom_nodes.xml
tests/custom_nodes.xml
+10
-10
tests/custom_nodesns.xml
tests/custom_nodesns.xml
+2
-2
tests/custom_nodesns_2.xml
tests/custom_nodesns_2.xml
+2
-2
tests/custom_nodesns_3.xml
tests/custom_nodesns_3.xml
+1
-1
tests/custom_nodesns_4.xml
tests/custom_nodesns_4.xml
+3
-3
tests/example.bsd
tests/example.bsd
+1
-1
tools/uaserver
tools/uaserver
+1
-1
No files found.
.github/ISSUE_TEMPLATE/bug_report.md
View file @
8dfb533e
.github/dependabot.yml
View file @
8dfb533e
.github/workflows/python-package.yml
View file @
8dfb533e
...
...
@@ -32,13 +32,24 @@ jobs:
python -m pip install 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 ruff
run
:
|
ruff check .
-
name
:
mypy
run
:
|
python -m pip install types-aiofiles types-python-dateutil types-pytz typing-extensions
python -m mypy asyncua/
-
name
:
Test with pytest
run
:
|
pytest -v -s
lint
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
with
:
submodules
:
true
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v5
with
:
python-version
:
"
3.12"
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
python -m pip install pre-commit
-
name
:
Lint with ruff
run
:
|
pre-commit run -a
.pre-commit-config.yaml
0 → 100644
View file @
8dfb533e
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v5.0.0
hooks
:
-
id
:
check-merge-conflict
-
id
:
check-yaml
args
:
[
--unsafe
]
-
id
:
end-of-file-fixer
-
id
:
trailing-whitespace
-
repo
:
https://github.com/charliermarsh/ruff-pre-commit
rev
:
'
v0.6.9'
hooks
:
-
id
:
ruff
args
:
[
'
--fix'
]
-
repo
:
https://github.com/pre-commit/mirrors-mypy
rev
:
v1.12.0
hooks
:
-
id
:
mypy
additional_dependencies
:
[
types-aiofiles
,
types-python-dateutil
,
types-pytz
,
typing-extensions
,
aiosqlite
,
types-pyOpenSSL
]
files
:
^asyncua/.*
.readthedocs.yml
View file @
8dfb533e
CHANGELOG.md
View file @
8dfb533e
README.md
View file @
8dfb533e
...
...
@@ -210,3 +210,15 @@ Or
```
./run-test.sh -v -s --cov asyncua --cov-report=html
```
## Linting
To apply linting checks (including ruff, and mypy) at each commit run,
```
bash
pip
install
pre-commit
pre-commit
install
```
You can also run all linters on all files with,
```
bash
pre-commit run
-a
```
\ No newline at end of file
asyncua/ua/uaerrors/_auto.py
View file @
8dfb533e
...
...
@@ -857,5 +857,3 @@ class BadMaxConnectionsReached(UaStatusCodeError):
class
BadDataSetIdInvalid
(
UaStatusCodeError
):
code
=
0x80E70000
asyncua/ua/uaprotocol_auto.py
View file @
8dfb533e
docs/api/asyncua.client.ha.rst
View file @
8dfb533e
...
...
@@ -36,4 +36,3 @@ asyncua.client.ha.virtual\_subscription module
:members:
:undoc-members:
:show-inheritance:
docs/api/asyncua.client.rst
View file @
8dfb533e
...
...
@@ -44,4 +44,3 @@ asyncua.client.ua\_file\_transfer module
:members:
:undoc-members:
:show-inheritance:
docs/api/asyncua.common.rst
View file @
8dfb533e
...
...
@@ -172,4 +172,3 @@ asyncua.common.xmlparser module
:members:
:undoc-members:
:show-inheritance:
docs/api/asyncua.crypto.rst
View file @
8dfb533e
...
...
@@ -25,4 +25,3 @@ asyncua.crypto.uacrypto module
:members:
:undoc-members:
:show-inheritance:
docs/api/asyncua.server.rst
View file @
8dfb533e
...
...
@@ -124,4 +124,3 @@ asyncua.server.users module
:members:
:undoc-members:
:show-inheritance:
docs/api/asyncua.server.standard_address_space.rst
View file @
8dfb533e
...
...
@@ -20,4 +20,3 @@ asyncua.server.standard\_address\_space.standard\_address\_space\_services modul
:members:
:undoc-members:
:show-inheritance:
docs/api/asyncua.ua.uaerrors.rst
View file @
8dfb533e
...
...
@@ -10,4 +10,3 @@ asyncua.ua.uaerrors package
:members:
:undoc-members:
:show-inheritance:
docs/api/index.rst
View file @
8dfb533e
docs/index.rst
View file @
8dfb533e
docs/requirements.txt
View file @
8dfb533e
docs/usage/client/overview.rst
View file @
8dfb533e
...
...
@@ -24,5 +24,3 @@ Browsing and accessing nodes
============================
.. todo:: Usage of shortcut objects (root, objects, ...)
docs/usage/common/node-nodeid.rst
View file @
8dfb533e
docs/usage/common/overview.rst
View file @
8dfb533e
...
...
@@ -31,5 +31,3 @@ asyncua.crypto package
Code related to permissions, security and encryption is located in the :mod:`asyncua.crypto`
package.
docs/usage/get-started/installation.rst
View file @
8dfb533e
docs/usage/get-started/minimal-client.rst
View file @
8dfb533e
docs/usage/get-started/minimal-server.rst
View file @
8dfb533e
docs/usage/get-started/opc-ua-basics.rst
View file @
8dfb533e
...
...
@@ -33,4 +33,3 @@ https://www.open62541.org
https://www.unified-automation.com
Unified Automation provides different products for the OPC-UA ecosystem. Most of the
tools are available as a free download with an evaluation license (non commercial use).
docs/usage/index.rst
View file @
8dfb533e
docs/usage/server/overview.rst
View file @
8dfb533e
docs/usage/sync/overview.rst
View file @
8dfb533e
schemas/README.md
View file @
8dfb533e
...
...
@@ -16,4 +16,3 @@ Path to the standard_address_space.py files: opcua-asyncio/asyncua/server/standa
-
our Github Discussions: https://github.com/FreeOpcUa/opcua-asyncio/discussions
-
our Gitter Channel: https://gitter.im/FreeOpcUa/opcua-asyncio
-
in case of Bugs with the updater, please make an issue: https://github.com/FreeOpcUa/opcua-asyncio/issues
\ No newline at end of file
schemas/generate_model_event.py
View file @
8dfb533e
schemas/generate_protocol_python.py
View file @
8dfb533e
tests/custom_extension_with_optional_fields.xml
View file @
8dfb533e
tests/custom_nodes.xml
View file @
8dfb533e
tests/custom_nodesns.xml
View file @
8dfb533e
tests/custom_nodesns_2.xml
View file @
8dfb533e
tests/custom_nodesns_3.xml
View file @
8dfb533e
tests/custom_nodesns_4.xml
View file @
8dfb533e
tests/example.bsd
View file @
8dfb533e
tools/uaserver
View file @
8dfb533e
...
...
@@ -7,7 +7,7 @@ from pathlib import Path
logging
.
basicConfig
(
level
=
logging
.
DEBUG
)
sys
.
path
.
append
(
f'
{
Path
(
__file__
).
parent
.
parent
}
'
)
from
asyncua.tools
import
uaserver
from
asyncua.tools
import
uaserver
# noqa: E402
if
__name__
==
"__main__"
:
uaserver
()
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