GithubHelp home page GithubHelp logo

emmo00 / alxcheck Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 9.0 38 KB

ALX text suite. Shell Utility that checks files for ALX's Project Requirements. Including: General, C, JavaScript and Python projects

Home Page: https://pypi.org/project/alxcheck/

License: MIT License

Python 100.00%
alx alx-africa checker checks tests alxswe green-squares

alxcheck's Introduction

Hi ๐Ÿ‘‹, I'm Emmanuel Nwafor

Learning Python, PHP and Javascript/Typescript for Backend development and very passionate about the interesting world of computer programming

emma_nwafor1

  • ๐Ÿ”ญ SWE graduate at ALX Africa โ€ข C11

  • ๐Ÿ’ฌ Ask me about Javascript, C, Python, PHP

  • ๐Ÿ“ซ How to reach me [email protected]

- โšก Let's Go!!!

Connect with me:

emma_nwafor1 Twitter page emma_nwafor1 Youtube Channel emma_nwafor1 LinkedIn

alxcheck's People

Contributors

adobki avatar emmo00 avatar samdoghor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alxcheck's Issues

Implement help option

Implement the help option. When -h or --help is passed as a command line argument, it should print out the help text/docs.

Check for new line

for some reason alxcheck does not correctly check for the presence of of a trailing new line in a file
image

betty check isn't working as expected on C files

I have some C file in the folder, and I ran the alxcheck on them, but no error message show, but after running betty at my end here, it displayed a lot of errors.

Find in the attachment below the description of the issue:
Screenshot from 2023-11-16 22-45-54

JavaScript shebang and executable tests should be for only node.js/executable JavaScript files

Only node.js/executable JavaScript files need a shebang. Scripts that would be loaded by HTML do not typically have one, nor are they executable as that could actually lead to issues.

alxcheck needs to find a way to detect this, or perhaps display these messages as warnings (orange/amber) as opposed to errors (red) and a notice to the user to only fix those if they are node.js executable scripts.

image

Implement fix option

When --fix is passed as a command-line, alxcheck should attempt to fix the errors

GitHub Actions

Setup GitHub actions to run tests on push.

and probably to publish package on release too

Description clarity

Interesting tool you have built :). But basically, it's only for the alx-system-engineering-DevOps
section If you can add this to the description it will be more clear to understand what the tool is exactly for ๐Ÿ™Œ.

Improve detection of python virtual environment folder

The logic for detecting Python virtual environment folders needs to be improved. Your implementation assumes that the folder would simply be named either venv or env, but that is not always the case. Python places no restrictions on the folder name, so most documentations/guides on the internet suggest using a custom name, which means that a Python virtual environment folder can actually be named anything at all, e.g. alxcheck_venv or _python_bin. I name mine .venv for instance, so that it stays at the top of the list in a directory listing, with the added advantage of being hidden and ignored by most apps in UNIX.

However, regardless of what the folder is named, it always has a ./pyvenv.cfg file in it (see attached screenshot), so perhaps have your script look for that file instead, or a similar artefact that applies to all virtual environment folders.

image
Source: official documentation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.