Commit Graph

13 Commits

Author SHA1 Message Date
Gulshan Singh bc59a8eddd
Fix memoize type issues and enable mypy in lint script (#1518)
* memoize type fixes

* Add mypy to lint script

* Add mypy to dev-requirements.txt
2023-01-11 13:39:30 +01:00
Gulshan Singh d9f6934858
Run lint CI job and Ubuntu 22.04 and 18.04 (#1505)
* Run lint CI job and Ubuntu 22.04 and 18.04

* Fix lint errors
2023-01-04 21:33:44 -08:00
Gulshan Singh 7efaa33b0c
Install shfmt on Ubuntu 22.04, otherwise skip running linter (#1323) 2022-10-23 01:33:00 +02:00
Gulshan Singh b0b6a8fa30
Rename setup-test-tools.sh to setup-dev.sh (#1320) 2022-10-22 09:50:48 -07:00
Gulshan Singh 0d73e9d8c9
Cleanup requirements and run full setup in lint CI job (#1230) 2022-10-05 18:15:18 -07:00
Miles Liu 8d184a9e8e Upload codecov report only from Ubuntu22.04
Also update GitHub action dependencies.
2022-09-29 12:47:22 +02:00
Gulshan Singh cc50024417
Format shell scripts with shfmt (#1123)
* Add lint.sh script

* Format shell scripts with shfmt and add to lint.sh

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
2022-09-05 13:24:52 +02:00
Gulshan Singh bbf1397a2b
Add lint.sh script (#1122) 2022-09-05 13:18:40 +02:00
Gulshan Singh 1df714d700
Fix PEP8 violations and add flake8 to CI (#1102)
* Add flake8 config to setup.cfg

* Fix W291 PEP8 warnings

* Fix W605 PEP8 warnings

* Fix E711 PEP8 error

* Fix E713 PEP8 errors

* Fix E262 PEP8 errors

* Fix E714 PEP8 error

* Fix E712 PEP8 errors

* Add flake8 to CI
2022-08-30 03:19:30 +02:00
Gulshan Singh d8b589d823
Add black to CI (#1101)
* Add black to CI

* Rename linter step
2022-08-30 02:34:34 +02:00
Israel Alberto RV bf49bf8356
Unit test fix (#868)
* Fixed the failed unit testing; Improved the Dockerfile, again.

* Fixed missing new line joiner in the Dockerfile.

* Fixed the default Python version from 2 to 3.

* Moved the installation of the nasm and golang packages to the setup script.

* Fixed the extra quotes which fails the sudo check.

* Added to the Git ignore file the output files assembled and linked in the test binaries.

* Removed the output files from test binaries.

* Added to the Git ignore file the virtual environment directory.

* Added sudo to the remove and link the Python3 binary.

* Added commands related to GO, to check why is failing.

* Fixed the installation of GO, only install if not exists in Ubuntu.

* Fixed the first test built in Assembler. Checks if it is working in GitHub.

* Fixed the problem with all the assembler tests; Extracted the asserts into methods, avoiding duplicates.

* Fixed some test, should be fail the Travis tests.

* Fixed one test for Travis.

* Fixed the asserts, now find all ecpected items into the output.

* Fixed the split message, joined again.

* Fixed the last error test for loads binary.

* Fixed one missing number in the comparison.

* Fixed the first Lint errors.

* Added comment in the Dockerfile.

The commented line about `git submodule`.

https://github.com/pwndbg/pwndbg/pull/868#discussion_r549075767

* Removed NASM and Go from the setup.

Created a new bash script to install them and added to the Dockerfile.

https://github.com/pwndbg/pwndbg/pull/868/files#r549075931

https://github.com/pwndbg/pwndbg/pull/868/files#r549076078

* Added the setup script in the GitHub test workflow.

https://github.com/pwndbg/pwndbg/pull/868/files#r549075931

https://github.com/pwndbg/pwndbg/pull/868/files#r549076078

* Testing the emulate cases.

It should be fail. I commented the emulation for the address 0x401000.

https://github.com/pwndbg/pwndbg/pull/868#discussion_r549111511

* Fixed the different start addresses in the assembler test.

https://github.com/pwndbg/pwndbg/pull/868#discussion_r549111511

https://github.com/pwndbg/pwndbg/pull/868#discussion_r549075485

* Experimenting with the python location.

Commented the remove python binary and added some logs.

https://github.com/pwndbg/pwndbg/pull/868#discussion_r549076170

* Removed the commands about delete Python and link the Python3.

https://github.com/pwndbg/pwndbg/pull/868#discussion_r549076170
2020-12-31 04:35:52 +01:00
Disconnect3d 301012abf2
Py3k (#817)
* Py3k

* Dont run py2 on CI

* Don't launch futurize on CI

* Move to latest isort options

* Modernize imports (isort>=5)

* Fix removed jump dir
2020-08-15 21:27:47 +02:00
Arusekk ce2266e95d
Add GitHub Actions support (#809) 2020-08-15 20:51:53 +02:00