Skip to content

Commit

Permalink
update readme, requirements and utils
Browse files Browse the repository at this point in the history
  • Loading branch information
cliftondavies committed Apr 18, 2023
1 parent 97630d9 commit 561dd01
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Code Analyza

> A code analyser package for Python.
A code analyser package for Python.

## :rocket: Getting Started
## Getting Started

### Installation

Expand All @@ -17,7 +17,7 @@ pip install code-analyza
Run as a script:

```bash
code-analyza _linter path/to/file/or/directory
code_analyza path/to/file/or/directory
```

Import as a module:
Expand Down
26 changes: 26 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
bleach==6.0.0
build==0.10.0
certifi==2022.12.7
charset-normalizer==3.1.0
colorama==0.4.6
docutils==0.19
idna==3.4
importlib-metadata==6.4.1
iniconfig==2.0.0
jaraco.classes==3.2.3
keyring==23.13.1
markdown-it-py==2.2.0
mdurl==0.1.2
more-itertools==9.1.0
packaging==23.0
pkginfo==1.9.6
pluggy==1.0.0
psutil-wheels==5.8.0
Pygments==2.15.0
pyproject_hooks==1.0.0
pytest==7.3.0
pywin32-ctypes==0.2.0
readme-renderer==37.3
requests==2.28.2
requests-toolbelt==0.10.1
rfc3986==2.0.0
rich==13.3.4
ruff==0.0.261
six==1.16.0
twine==4.0.2
urllib3==1.26.15
webencodings==0.5.1
zipp==3.15.0
2 changes: 1 addition & 1 deletion src/code_analyza/linter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def list_file_paths(folder, basepath, paths=[]):
for content in folder:
full_path = os.path.join(basepath, content)

if os.path.isfile(full_path) and not content.endswith("tests.py") and content.endswith(".py"):
if os.path.isfile(full_path) and content.endswith(".py"):
paths.append(full_path)
elif os.path.isdir(full_path):
list_file_paths(content, full_path, paths)
Expand Down

0 comments on commit 561dd01

Please sign in to comment.