Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code quality issues #54

Closed
wants to merge 1 commit into from
Closed

Fix code quality issues #54

wants to merge 1 commit into from

Conversation

sauravsrijan
Copy link

Changes:

  • Remove unused imports
  • Use _ for unused variables
  • Remove unnecessary list comprehension
  • Add .deepsource.toml file to run continuous static analysis on the repository with DeepSource

This PR also adds .deepsource.toml configuration file to run static analysis continuously on the repo with DeepSource. Upon enabling DeepSource, quality and security analysis will be run on every PR to detect 500+ types of problems in the changes — including bug risks, anti-patterns, security vulnerabilities, etc.

DeepSource is free to use for open-source projects, and is used by teams at NASA, Uber, Slack among many others, and open-source projects like ThoughtWorks/Gauge, Masonite Framework, etc.

To enable DeepSource analysis after merging this PR, please follow these steps:

  • Sign up on DeepSource with your GitHub account and grant access to this repo.
  • Activate analysis on this repo here.
  • You can also look at the docs for more details. Do let me know if I can be of any help!

Changes
- Remove unused imports
- Use `_` for unused variables
- Remove unnecessary list comprehension
- Add .deepsource.toml file to run continuous static analysis on the repository with DeepSource
@sauravsrijan sauravsrijan closed this by deleting the head repository Jun 12, 2023
b-price pushed a commit to b-price/mojomutpy that referenced this pull request Mar 14, 2024
* adding requirements into `setup.py`

adding pylint and pytest commands in `setup.py`

* adding `.pylintrc`

* removing requirements files and tox

* allowing travis to test over all "supported" versions of python

* fixing warning with specifying `pytest`

* cleaning up tests to work better over all versions of python

disabling checking python3.6+ syntaxt on lower versions

* possible var misspelling fix?

* adding pylint disables

* fixing python2.7 import issues for `zip_longest`

* adding testing for python3.3

* Revert "adding testing for python3.3"

This reverts commit ee204193

* ignoring `line-too-long` pylint warning

* Revert: removing requirements files and tox

adding back requirements files

removing the recursive flag

* adding back usage of requirement files in `setup.py`

* removing `pylint` components

* removing cloning of `pypy`

* disabling testing of python3.5 3.4

* fixing tests

* removing pylint ignores

* fixing shebangs

* removing `pylint` as a test requirement

* adding trailing newline

* removing commented out environment tests

* removing module docstring

* removing unneeded shebangs

* removing unneeded import

* removing unneeded encoding hints

* Adding back `tox`

* testing on both py27 and py36

* improved coverage report generation

* flake8 linting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants