Skip to content

Commit

Permalink
Merge branch 'master' into julia
Browse files Browse the repository at this point in the history
  • Loading branch information
soham4abc authored Jan 12, 2022
2 parents b0450c4 + 6602d4e commit 94c1cd4
Show file tree
Hide file tree
Showing 64 changed files with 2,273 additions and 1,581 deletions.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: General issue
about: Create a report to help us improve
labels: general
---

<!-- Before filling this issue, please read the Docs (https://github.com/fossology/Nirjas#readme)
and search if the bug do not already exists in the issues (https://github.com/fossology/Nirjas/issues). -->

### Description

Please describe your issue in few words here.

#### How to reproduce

Describe the bug and list the steps you used when the issue occurred.

#### Screenshots

If applicable, add screenshots to help explain your problem.

### Versions

* Last commit id on master:
* Operating System (lsb_release -a):
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug
---

<!-- Before filling this issue, please read the Docs (https://github.com/fossology/Nirjas#readme)
and search if the bug do not already exists in the issues (https://github.com/fossology/Nirjas/issues). -->

### Description

Please describe your issue in few words here.

#### How to reproduce

Describe the bug and list the steps you used when the issue occurred.

#### Screenshots

If applicable, add screenshots to help explain your problem.

### Versions

* Last commit id on master:
* Operating System (lsb_release -a):
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: Request a new feature in Nirjas
labels: enhancement
---

<!-- Before filling this issue, please read the Docs (https://github.com/fossology/Nirjas#readme)
and search if the bug do not already exists in the issues (https://github.com/fossology/Nirjas/issues). -->

### Description

Please describe your situation in few words here.

#### Steps followed and expected result

Describe the steps followed by you and your expected results after following the steps.

#### Screenshots

If applicable, add screenshots to help explain your problem.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- name: Install flake8
run: pip install flake8
- name: Run flake8
run: flake8 ./nirjas
run: flake8 --ignore=E501 ./nirjas
16 changes: 9 additions & 7 deletions nirjas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

'''
"""
nirjas module which can be imported by other tools
SPDX-License-Identifier: LGPL-2.1
Expand All @@ -16,17 +16,19 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
'''
"""

from nirjas.main import file_runner # noqa

from nirjas.main import *

def extract(file):
'''
"""
Extract the information from the given file.
:param file: File or directory to get information from
:type file: string
:return: Returns comments and other meta information about the given file.
'''
return file_runner(file)
"""
return file_runner(file) # noqa


__all__ = ['file_runner', 'extract', 'LanguageMapper']
__all__ = ["file_runner", "extract", "LanguageMapper"]
Loading

0 comments on commit 94c1cd4

Please sign in to comment.