Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1007 commits
Select commit Hold shift + click to select a range
fde2544
Repair Travis CI ARM setup (#1070)
felixdivo Jun 8, 2021
328f6e1
Merge branch 'develop' into add-wheel-deployment
mergify[bot] Jun 8, 2021
ea253fd
Merge branch 'develop' into felixdivo-issue-1046-kvaser
mergify[bot] Jun 8, 2021
e046ed8
Merge branch 'develop' into felixdivo-issue-1046-neousys
mergify[bot] Jun 8, 2021
6ff3ee2
Merge branch 'develop' into felixdivo-issue-1046-virtual
mergify[bot] Jun 8, 2021
4b202fd
Merge pull request #1071 from hardbyte/add-wheel-deployment
mergify[bot] Jun 8, 2021
fb0210a
Merge branch 'develop' into felixdivo-issue-1046-neousys
mergify[bot] Jun 8, 2021
81aeadb
Merge branch 'develop' into felixdivo-issue-1046-kvaser
mergify[bot] Jun 8, 2021
1a7afb7
Merge branch 'develop' into felixdivo-issue-1046-virtual
mergify[bot] Jun 8, 2021
73aaf7e
Merge pull request #1076 from hardbyte/felixdivo-issue-1046-neousys
mergify[bot] Jun 8, 2021
45205f6
Merge branch 'develop' into felixdivo-issue-1046-kvaser
mergify[bot] Jun 8, 2021
906b9f3
Merge branch 'develop' into felixdivo-issue-1046-virtual
mergify[bot] Jun 8, 2021
2c07d54
Fix test for CAN-FD direction in BLF reader
fabiocrestani Jun 8, 2021
d74434e
Merge pull request #1074 from hardbyte/felixdivo-issue-1046-kvaser
mergify[bot] Jun 8, 2021
a39eb7a
Merge branch 'develop' into felixdivo-issue-1046-virtual
mergify[bot] Jun 8, 2021
3b8ece6
Merge branch 'develop' into bugfix/blf-reader-missing-direction-of-ca…
mergify[bot] Jun 8, 2021
b897bd7
ICSOperationError base exception class should be CanOperationError
pierreluctg Jun 8, 2021
6b820d7
Merge branch 'develop' into felixdivo-issue-1046-virtual
mergify[bot] Jun 8, 2021
98416f3
Merge branch 'develop' into bugfix/blf-reader-missing-direction-of-ca…
mergify[bot] Jun 8, 2021
7d4b4e4
Merge branch 'develop' into improve-linting
felixdivo Jun 8, 2021
0f06e21
Format code with black
felixdivo Jun 8, 2021
b4f5da9
Merge pull request #1079 from hardbyte/felixdivo-issue-1046-virtual
mergify[bot] Jun 8, 2021
e1572e9
Merge branch 'develop' into bugfix/blf-reader-missing-direction-of-ca…
mergify[bot] Jun 8, 2021
1540195
Merge branch 'develop' into improve-linting
mergify[bot] Jun 8, 2021
3b85b88
Merge pull request #966 from fabiocrestani/bugfix/blf-reader-missing-…
mergify[bot] Jun 8, 2021
d8ce129
Merge branch 'develop' into improve-linting
mergify[bot] Jun 8, 2021
94e9693
Format code with black
mergify[bot] Jun 8, 2021
3494793
Merge branch 'develop' into improve-linting
mergify[bot] Jun 8, 2021
8d5a238
Merge pull request #1036 from hardbyte/improve-linting
mergify[bot] Jun 8, 2021
ed107af
Adjust vector interface to new exceptions
felixdivo Jun 9, 2021
5b8c43c
Add test cases for new error vector types
felixdivo Jun 9, 2021
bdc462a
Format code with black
felixdivo Jun 9, 2021
6d280ed
improve docstrings related to exceptions
felixdivo Jun 9, 2021
45a1808
Merge branch 'felixdivo-issue-1046-vector' of github.com:hardbyte/pyt…
felixdivo Jun 9, 2021
6e21926
Fix test_called_without_testing_argument() unit test case
felixdivo Jun 9, 2021
8e6f05a
Setting the transmit exception __cause__ to None
pierreluctg Jun 9, 2021
f7bf68f
Improve PCAN installation procedure
felixdivo Jun 14, 2021
0fda7f4
Format code with black
felixdivo Jun 14, 2021
0ebb0a3
revert installation of uptime in CI
felixdivo Jun 14, 2021
e5ad332
Add new language classifiers to setup.py
felixdivo Jun 14, 2021
599ab8d
Clean up pcan_test: Group imports and remove redundant one
felixdivo Jun 14, 2021
253705a
Improve docstring of VectorBus.__init__; better parsing; and add typi…
felixdivo Jun 9, 2021
6b2d983
Format code with black
felixdivo Jun 9, 2021
d501728
Update can/interfaces/vector/canlib.py
felixdivo Jun 13, 2021
2afb0bf
Update can/interfaces/vector/canlib.py
felixdivo Jun 13, 2021
3943a86
fix 'Vector Hardware Config' naming
felixdivo Jun 13, 2021
4d86f70
Merge branch 'develop' into felixdivo-issue-1046-vector
felixdivo Jun 17, 2021
689a87d
Adjust iscan to new exceptions; simplify; add typing
felixdivo Jun 14, 2021
fcbef0e
Specific Exceptions: Adapting udp_multicast interface (#1089)
felixdivo Jun 17, 2021
872486a
Specific Exceptions: Adapting serial interface (#1088)
felixdivo Jun 17, 2021
0e0c64f
Specific Exceptions: Adapting socketcan interface (#1087)
felixdivo Jun 17, 2021
0262b8d
Merge pull request #1083 from hardbyte/felixdivo-issue-1046-vector
felixdivo Jun 17, 2021
c64f162
Supress exception occuring in NIXNET _detect_available_configs() (#1085)
felixdivo Jun 24, 2021
5dcebd7
Supress 'SystemError: DeviceNotFound' in cantact detect_available_con…
felixdivo Jun 24, 2021
1d53b25
Update docstring of can.io.generic.FileIOMessageWriter (#1098)
felixdivo Jul 6, 2021
5b12900
Handle case where uptime is imported successfully but does not return…
ChrisSweetKT Jul 7, 2021
2cb411a
Log suppressed error in notifier (#1040)
felixdivo Jul 14, 2021
da53ba2
Mark CAN FD support as tested (#1107)
felixdivo Jul 14, 2021
158c17a
Mention buffer sizes in socketcan docs (#1108)
felixdivo Jul 14, 2021
2043822
Specific Exceptions: Adapting nican interface (+ add some typing) (#1…
felixdivo Jul 14, 2021
dd5886c
Removes an unneeded line from the two scripts; Use context manager in…
felixdivo Jul 14, 2021
bb1706b
Specific Exceptions: Adapting seeedstudio interface (#1090)
felixdivo Jul 14, 2021
ead8c70
Specific Exceptions: Adapting usb2can interface (+ simplify + partial…
felixdivo Jul 14, 2021
5b63bb2
Update github actions to test with latest python (#1069)
zariiii9003 Jul 14, 2021
44bd901
fix(ctypesutil): correctly apply wrapped lib function as CLibrary mem…
semcodech Aug 13, 2021
2d79b51
Viewer fixes (#1118)
Lauszus Aug 18, 2021
9f7077c
Speed up imports by removing pkg_resources (#1110)
wbarnha Aug 18, 2021
1979a75
Format code with black
wbarnha Aug 18, 2021
596f07d
Avoid flooding the logger with ~500 errors when they are the same (#1…
pierreluctg Sep 10, 2021
71580d8
canalystii: Fix transmitting onto a busy bus (#1114)
projectgus Sep 24, 2021
352b1f1
ci: Update to pypy-3.7 and add Python 3.10 on Ubuntu & MacOS (#1143)
projectgus Oct 25, 2021
d4aefcf
Tiny: Fix doc in TestCsvFileFormat
felixdivo Oct 25, 2021
784b871
Update Mergify rules (#1146)
felixdivo Oct 26, 2021
beb5727
Add app_name to logger module (#1142)
samsmith94 Oct 26, 2021
1e17193
Make setuptools a package dependency
alexey-tereshenkov-oxb Oct 27, 2021
c9c3048
Correct app_name argument
samsmith94 Oct 26, 2021
bb78312
Merge pull request #1157 from alexey-tereshenkov-oxb/fix/make-setupto…
felixdivo Oct 27, 2021
18f3462
canalystii: Switch from binary library to pure Python driver
projectgus Aug 24, 2021
69b70db
gs_usb: Update the libusb-win32 documentation to provide a link
projectgus Oct 27, 2021
5ef230a
Merge pull request #1127 from projectgus/feature/canalystii_python_dr…
felixdivo Oct 29, 2021
b37a990
add ETAS interface
Nov 6, 2021
7216d26
Fix the way CI status conditions are specified for Mergify
felixdivo Oct 26, 2021
5441c5a
Update development.rst
felixdivo Oct 26, 2021
b2a5024
Improve IO class hierarchy + Allow to use SizedRotatingLogger as a co…
felixdivo Nov 10, 2021
87effed
Specific Exceptions: Adapting systec interface (#1158)
felixdivo Nov 11, 2021
9319968
Remove duplicated documentation
felixdivo Oct 27, 2021
7a69650
Cleanups and use new exceptions
felixdivo Oct 27, 2021
ec00893
Format code with black
felixdivo Oct 27, 2021
c151e7c
Specific Exceptions: Adapting cantace interface
felixdivo Oct 27, 2021
42d47b6
Fix _detect_available_configs
felixdivo Oct 27, 2021
4e8b8de
Use CanInterfaceNotImplementedError when the CANtact module is missing
felixdivo Oct 27, 2021
38889ec
Format code with black
felixdivo Oct 27, 2021
23046fa
etas interface: timestamps relative to epoch
Nov 11, 2021
270224c
Fix formatter and bump ci tools (#1167)
felixdivo Nov 11, 2021
0a2aa84
incorporate review comments by felixdivo
Nov 14, 2021
6afeb8b
refactor send and recv methods
Nov 14, 2021
7414037
use ctypes.errcheck for error checking
Nov 14, 2021
4ac9008
Add changed byte highlighting to viewer.py (#1159)
MattWoodhead Nov 16, 2021
8ab55e8
Use new exceptions
felixdivo Nov 11, 2021
9080c47
Complete broken PR #1156 (Specific Exceptions: Adapting slcan interfa…
felixdivo Nov 16, 2021
dc7397e
Better documentation of parameters
felixdivo Oct 27, 2021
7460829
Use CanInterfaceNotImplementedError
felixdivo Oct 27, 2021
e1bfd09
Format code with black
felixdivo Oct 27, 2021
aa5dfd0
Simplify logging
felixdivo Oct 27, 2021
4db969d
Allowing for extra config arguments in can.logger (#1170)
pierreluctg Nov 19, 2021
38b1b0d
Updating neoVI documentation and docstrings (#1173)
pierreluctg Nov 23, 2021
78c0db3
Calling stop_all_periodic_tasks() in BusABC (#1174)
pierreluctg Nov 24, 2021
998615a
Adding support for gzipped ASC logging file (.asc.gz) (#1138)
pierreluctg Nov 25, 2021
48e9040
Improve issue templates (#1178)
felixdivo Dec 1, 2021
5b5bcc2
Add logconvert script (#1072)
simontegelid Dec 5, 2021
3b47d42
Add socketcan parameter to ignore CAN error frames (#1128)
nbusser Dec 5, 2021
acc2ebd
socketcand Backend for python-can (#1140)
domologic Dec 6, 2021
b886203
Ixxat CAN FD support (#1119)
fjburgos Dec 7, 2021
d603ff9
Specific Exceptions: Adapting pcan interface (#1152)
felixdivo Dec 7, 2021
8aa7166
Truncating message data if over max frame length (#1181)
pierreluctg Dec 7, 2021
278e7e8
Fix broken link in README (#1182)
felixdivo Dec 8, 2021
6c8be9e
fix f-string
zariiii9003 Dec 8, 2021
9af60f6
turn XL_BusTypes into IntFlag, update other enum values (#1184)
zariiii9003 Dec 12, 2021
b693494
Update mergify rules
hardbyte Dec 12, 2021
c469ce9
Implement check for minimum version of pcan library
Dec 13, 2021
56ad81c
Format code with black
Dec 13, 2021
c8d964c
Merge branch 'develop' into etas
felixdivo Dec 13, 2021
6a3da0f
Fix spell error `touple` to `tuple`
Dec 13, 2021
f11a41f
Setting is_error_frame message property in neovi interface
pierreluctg Dec 13, 2021
73057d8
Specific Exceptions: Adapting nixnet interface (#1154)
felixdivo Dec 14, 2021
cee2d78
Merge pull request #1155 from hardbyte/felixdivo-issue-1046-robotell
felixdivo Dec 14, 2021
e3928de
incorporate review feedback
Dec 16, 2021
ddcefe2
Merge remote-tracking branch 'upstream/develop' into etas
Dec 16, 2021
5ff0f15
Update doc/interfaces/etas.rst
felixdivo Dec 16, 2021
af0d832
Merge pull request #1144 from felixn/etas
felixdivo Dec 16, 2021
78f86f3
Merge pull request #1189 from hardbyte/neovi-is_error_frame
felixdivo Dec 16, 2021
0f80d25
Mover read of api version to separate function
pkess Dec 17, 2021
ae260cd
Move check of api version to separate method
pkess Dec 17, 2021
fe3a2c4
Add can.logconvert to script docs
simontegelid Dec 14, 2021
bc66b57
Add preserve timestamps to virtual
simontegelid Dec 17, 2021
4addd5f
Add mock for pcan tests to suppress check of api version
pkess Dec 17, 2021
16e35f1
Change mock/init order to make tests run
pkess Dec 17, 2021
1dcc736
Put simulated version to object attribute
pkess Dec 17, 2021
5a43bb8
Add test for wrong api version
pkess Dec 17, 2021
0ee529c
Add testcase test_api_version_read_fail
pkess Dec 17, 2021
5eaa9d1
Add unittests for logger execution (#1196)
pkess Dec 19, 2021
e7a2b04
Merge pull request #1194 from simontegelid/document_logconvert
felixdivo Dec 20, 2021
f1c5c0b
Log warning instead of raise error when pcan api is to old
pkess Dec 20, 2021
8f0136a
Add test for log output
pkess Dec 20, 2021
89deff5
Fix syntax highlighting in bus.rst
felixdivo Dec 20, 2021
0362acb
Add test case for player.py
pkess Dec 20, 2021
ee06947
Format code with black
pkess Dec 20, 2021
5c72735
Add mock for sleep function to fasten up testing
pkess Dec 20, 2021
fec26fb
Add test for verbose mode
pkess Dec 20, 2021
fefdd53
Add call count assert
pkess Dec 20, 2021
0907785
Add test for Keyboard interrupt during execution
pkess Dec 20, 2021
4721134
Add todos
pkess Dec 20, 2021
1d11a04
Implement check for successfull cleanup and send message call count
pkess Dec 26, 2021
bae496e
Add assumptions for test cases
pkess Dec 26, 2021
c41845f
Add check for output on screen
pkess Dec 26, 2021
f6816b9
Implement test for replay with error frames
pkess Dec 26, 2021
dcbb963
Format code with black
pkess Dec 26, 2021
6dc50e8
Merge remote-tracking branch 'origin/develop' into pcan_check_api_ver…
pkess Dec 26, 2021
558b297
Add str conversion to config val
Tbruno25 Jan 1, 2022
eb8d92d
Fix typo
zariiii9003 Jan 10, 2022
c959047
Merge pull request #1197 from hardbyte/felixdivo-patch-bus.rst
felixdivo Jan 10, 2022
2e24af0
Fix vector get application config (#977)
danielhrisca Jan 10, 2022
7da7303
Remove useless import
pkess Jan 11, 2022
2cb76b5
Format code with black
pkess Jan 11, 2022
5c6480b
Correct spell error
pkess Jan 11, 2022
07855c8
Add unittest for timing conf
Tbruno25 Jan 14, 2022
6f94d6b
Update workflow versions, platforms, library and tool versions and RE…
felixdivo Jan 15, 2022
dd25e4b
Fix code formatting job
felixdivo Jan 15, 2022
46ad7d4
Disable Python 3.11 pre-releases
felixdivo Jan 15, 2022
8641f5e
Test that the auto-formatting tool can still commit
felixdivo Jan 15, 2022
0acabbf
Format code with black
felixdivo Jan 15, 2022
954bb02
Update README.rst
felixdivo Jan 15, 2022
1dd4581
Implement test of function calls
pkess Jan 15, 2022
e7842f4
Add TL;DR
felixdivo Jan 15, 2022
3382d53
Limit test for correct calls to python versions >= 3.8
pkess Jan 15, 2022
67e4098
Format code with black
pkess Jan 15, 2022
8182751
Use lowercase parameter names
pkess Jan 15, 2022
3f0f264
Merge pull request #1204 from Tbruno25/1175_fix-int-conversion
zariiii9003 Jan 15, 2022
4c4d1dc
Merge pull request #1188 from pkess/pcan_check_api_version
felixdivo Jan 15, 2022
1ce5614
Merge pull request #1215 from hardbyte/felixdivo-patch-readme-tiny
felixdivo Jan 15, 2022
ab0cc7f
Merge branch 'develop' into update-ci-tools
felixdivo Jan 15, 2022
a5f0ef8
simplify version check
zariiii9003 Jan 15, 2022
2604b6d
Merge pull request #1214 from hardbyte/update-ci-tools
felixdivo Jan 15, 2022
7a20405
Change shebang and remove coding
pkess Jan 16, 2022
99d352a
Correct shebang and remove coding from all tests
pkess Jan 16, 2022
8b6b592
Merge pull request #1198 from pkess/584-add_test_player
felixdivo Jan 16, 2022
8035216
Add changelog for 4.0.0
felixdivo Jan 16, 2022
0753fba
Merge pull request #1218 from pkess/fix-header-tests
felixdivo Jan 16, 2022
2ba9bd3
React to #1219
felixdivo Jan 16, 2022
7226fa3
Typos
felixdivo Jan 16, 2022
b4d7801
Merge pull request #1195 from simontegelid/preserve_timestamps
felixdivo Jan 17, 2022
e86b865
Moved #1125 to the neovi section
pierreluctg Jan 17, 2022
a415497
Update CHANGELOG.md
felixdivo Jan 18, 2022
803a712
Merge pull request #1216 from hardbyte/add-changelog-for-4.0.0
felixdivo Jan 18, 2022
f7f9a8d
move static code analysis to Github actions
zariiii9003 Jan 20, 2022
bc14b95
move continue-on-error
zariiii9003 Jan 20, 2022
c0da4c8
make mypy happy
zariiii9003 Jan 20, 2022
b75e214
add newline at end
zariiii9003 Jan 20, 2022
94c1701
Merge pull request #1224 from zariiii9003/move_mypy
zariiii9003 Jan 21, 2022
53e5e11
Add Github Actions badge
zariiii9003 Jan 21, 2022
b66ea80
remove continue-on-error so workflow fails
zariiii9003 Jan 21, 2022
88cb3bb
improve ASCReader robustness
zariiii9003 Jan 21, 2022
2bc44be
add comment
zariiii9003 Jan 21, 2022
d8e9dc5
Merge pull request #1223 from zariiii9003/fix_ascii
zariiii9003 Jan 21, 2022
57bc62c
change DLC to DL
zariiii9003 Jan 14, 2022
30c421a
update CHANGELOG.md
zariiii9003 Jan 21, 2022
2185f27
Moderinze README code
felixdivo Jan 23, 2022
593e0d4
Merge pull request #1228 from hardbyte/felixdivo-patch-README-modernize
felixdivo Jan 23, 2022
2807da1
Merge pull request #1212 from zariiii9003/issue_1183
felixdivo Jan 23, 2022
5088ec2
Add unzip method to logreader
Tbruno25 Jan 18, 2022
7e59007
Apply PR feedback
Tbruno25 Jan 21, 2022
56c5791
Add player unittest
Tbruno25 Jan 21, 2022
5e5ca2b
Add compress method to logger
Tbruno25 Jan 22, 2022
c56ff40
check vector with mypy
zariiii9003 Jan 25, 2022
4739391
add test and correct type annotations
zariiii9003 Jan 25, 2022
4234808
Add logger unittest
Tbruno25 Jan 22, 2022
57a955e
Add multiple dot suffix variant
Tbruno25 Jan 24, 2022
0b74c68
Merge branch 'develop' into 1210_add-gzipreader
Tbruno25 Jan 26, 2022
a2b840d
Format code with black
Tbruno25 Jan 26, 2022
ac1df03
Remove gzip classes
Tbruno25 Jan 26, 2022
9b563bf
Remove unittests
Tbruno25 Jan 26, 2022
caeab0e
fix mypy errors
Tbruno25 Jan 26, 2022
c546bd0
edit unittest to work on windows
Tbruno25 Jan 26, 2022
50071cc
add missing type annotation
zariiii9003 Jan 26, 2022
72408e5
Update can/io/logger.py
Tbruno25 Jan 27, 2022
3bdd60a
Update can/io/logger.py
Tbruno25 Jan 27, 2022
9e1fe3a
Update can/io/player.py
Tbruno25 Jan 27, 2022
fe74050
Format code with black
Tbruno25 Jan 27, 2022
bfc3283
Update can/io/player.py
Tbruno25 Jan 27, 2022
9f7842a
Remove unnssesary conversion to list
felixdivo Jan 27, 2022
d142257
Merge pull request #1221 from Tbruno25/1210_add-gzipreader
zariiii9003 Jan 27, 2022
00e2302
Merge pull request #1229 from zariiii9003/vector_mypy
zariiii9003 Jan 27, 2022
55c5fdf
improve io typing
zariiii9003 Jan 27, 2022
cb58f9a
Merge pull request #1232 from hardbyte/felixdivo-patch-list-conversio…
felixdivo Jan 27, 2022
28513eb
Merge pull request #1238 from zariiii9003/io_typing
zariiii9003 Jan 27, 2022
f1808ed
Address pylint issues (#1239)
felixdivo Jan 27, 2022
48f9c27
Fix deprecation of asyncio.get_event_loop() (#1235)
felixdivo Jan 27, 2022
c7ba84a
Fix entry_points deprecation (#1233)
felixdivo Jan 27, 2022
24ea2f2
Update changelog (#1240)
felixdivo Jan 28, 2022
a2c0128
Prepare 4.0.0-rc.0 (#1241)
felixdivo Feb 4, 2022
257d57d
Fix guaranteed crash when using usb2can (#1249)
felixdivo Feb 4, 2022
207be4b
Update history & contributors (#1251)
hardbyte Feb 7, 2022
1142299
If parsed data has shortened, overwrite end of line with spaces (#1201)
simonkerscher Feb 8, 2022
20b3138
Pass flags instead of flags_t type for USB2CAN (#1252)
jacobian91 Feb 11, 2022
f1a012c
[IO][ASC]: fix data length (#1246)
jazi007 Feb 11, 2022
7fcc813
bugfix ASCReader (#1257)
zariiii9003 Feb 11, 2022
cbc5294
Finalize changelog for 4.0.0
felixdivo Feb 18, 2022
d177a82
Update version to 4.0.0
felixdivo Feb 18, 2022
bb2a38e
Merge branch 'master' into release/4.0.0
hardbyte Feb 18, 2022
1fd5228
Update creating release docs to reference main branch
hardbyte Feb 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Validate with curl --data-binary @.codecov.yml https://codecov.io/validate
codecov:
archive:
uploads: no
uploads: yes

coverage:
precision: 2
Expand Down
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

### Describe the bug
<!-- A clear and concise description of what the bug is. -->


### To Reproduce
<!-- Steps to reproduce the behavior. Please add longer code examples below. -->


### Expected behavior
<!-- A clear and concise description of what you expected to happen. -->


### Additional context

OS and version:
Python version:
python-can version:
python-can interface/s (if applicable):

<!-- Add any other context about the problem here. -->

<details><summary>Traceback and logs</summary>
<!-- Has to be followed by an empty line! -->

<!-- More details such as a minimal script to demonstrate the bug, relevant logs and any tracebacks go here. -->

<!-- Code examples can be included: -->
```python
def func():
return "hello, world!"
```
</details>
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''

---

### Is your feature request related to a problem? Please describe.
<!-- A clear and concise description of what the problem is. Ex.: I'm always frustrated when [...] -->

### Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->

### Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->

### Additional context
<!-- Add any other context or screenshots about the feature request here. -->
90 changes: 90 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Tests

on: [push, pull_request]

env:
PY_COLORS: "1"

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }} # See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontinue-on-error
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
experimental: [false]
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7", "pypy-3.8"]
# Do not test on Python 3.11 pre-releases since wrapt causes problems: https://github.com/GrahamDumpleton/wrapt/issues/196
# include:
# Only test on a single configuration while there are just pre-releases
# - os: ubuntu-latest
# experimental: true
# python-version: "3.11.0-alpha.3"
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test with pytest via tox
run: |
tox -e gh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true

static-code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -r requirements-lint.txt
- name: mypy 3.7
run: |
mypy --python-version 3.7 .
- name: mypy 3.8
run: |
mypy --python-version 3.8 .
- name: mypy 3.9
run: |
mypy --python-version 3.9 .
- name: mypy 3.10
run: |
mypy --python-version 3.10 .
- name: pylint
run: |
pylint --rcfile=.pylintrc \
can/**.py \
setup.py \
doc.conf \
scripts/**.py \
examples/**.py

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-lint.txt
- name: Code Format Check with Black
run: |
black --check --verbose .
29 changes: 29 additions & 0 deletions .github/workflows/format-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Format Code

on:
push:
paths:
- '**.py'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-lint.txt
- name: Code Format Check with Black
run: |
black --verbose .
- name: Commit Formated Code
uses: EndBug/add-and-commit@v7
with:
message: "Format code with black"
# Ref https://git-scm.com/docs/git-add#_examples
add: './*.py'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
test/__tempdir__/
.pytest_cache/
.mypy_cache/
.dmypy.json
dmypy.json

# -------------------------
# below: https://github.com/github/gitignore/blob/da00310ccba9de9a988cc973ef5238ad2c1460e9/Python.gitignore
Expand Down
25 changes: 25 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
queue_rules:
- name: default
conditions:
- "status-success=test" # "GitHub Actions works slightly differently [...], only the job name is used."
- "status-success=format"

pull_request_rules:
- name: Automatic merge passing PR on up to date branch with approving CR
conditions:
- "base=develop"
- "#approved-reviews-by>=1"
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- "status-success=test"
- "status-success=format"
- "label!=work-in-progress"
actions:
queue:
name: default

- name: Delete head branch after merge
conditions:
- merged
actions:
delete_head_branch: {}
Loading