Skip to content

Commit

Permalink
Merge pull request #103 from lbluque/main
Browse files Browse the repository at this point in the history
Remove python 3.8 tests and update issue templates
  • Loading branch information
lbluque authored Sep 13, 2023
2 parents c08b796 + a2da37b commit 3c247b6
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 64 deletions.
109 changes: 71 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,72 @@
---
name: "\U0001F41B Bug Report"
about: "If something isn't working as expected \U0001F914."
labels: bug
name: Bug Report
description: File a bug report
title: "[Bug]: "
labels: ["bug", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: input
id: contact
attributes:
label: Email (Optional)
description: How can we get in touch with you if we need more info?
placeholder: ex. [email protected]
validations:
required: false
- type: input
id: version
attributes:
label: Version
description: What version of our software are you running?
placeholder: v2023.1.1
validations:
required: true
- type: checkboxes
id: operating-systems
attributes:
label: Which OS(es) are you using?
description: You may select more than one.
options:
- label: MacOS
- label: Windows
- label: Linux
validations:
required: true
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Provide a concise description of the bug.
placeholder: |
1. I am attempting to do this (code snippet given below).
2. Expected behavior: ...
3. Instead, got this behavior: ...
4. Proposed solution (if any). Even better, you can just submit a PR with your solution to contribute to the community.

---

<!--- Provide a general summary of the issue in the Title above -->

<!--- Thanks for tracking down some smelly bug!
Please fill in the following as best you can, if you have no info
for a particular section then just remove the title--->

## Expected Behavior
<!--- Tell us what should happen -->

## Current Behavior
<!--- Tell us what happens instead of the expected behavior -->

## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->

## Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1.
2.

## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->

<!--- Provide a general summary of the issue in the Title above -->

## Detailed Description
<!--- Provide a detailed description of the change or addition you are proposing -->

## Possible Implementation
<!--- Not obligatory, but suggest an idea for implementing addition or change -->
Tip: You can attach images or files by clicking this area and then dragging files in.
validations:
required: true
- type: textarea
id: snippet
attributes:
label: Code snippet
description: |
Please provide a code snippet to reproduce the bug. This will be automatically formatted into code, so no need for backticks.
render: python
- type: textarea
id: logs
attributes:
label: Log output
description: |
Please provide any relevant log output, especially error messages. This will be automatically formatted, so no need for backticks.
render: shell
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/materialsproject/.github/blob/main/.github/code_of_conduct.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
70 changes: 49 additions & 21 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,49 @@
---
name: "\U0001F680 Feature request"
about: Suggest an idea for this project
labels: enhancement

---

<!--
Thank you for contributing ideas to sparse-lm!
Please fill in as much of the template below as you're able.
-->

**Is your feature request related to a problem? Please describe.**
Please describe the problem you are trying to solve.

**Describe the solution you'd like**
Please describe the desired behavior.

**Describe alternatives you've considered**
Please describe alternative solutions or features you have considered.
name: Feature Request
description: Propose a new idea for this project
title: "[Feature Request]: "
labels: ["feature_request", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to submit this feature request!
- type: input
id: contact
attributes:
label: Email (Optional)
description: How can we get in touch with you if we need more info?
placeholder: ex. [email protected]
validations:
required: false
- type: textarea
id: problem
attributes:
label: Problem
description: Briefly describe the problem you're experiencing.
placeholder: E.g., I would like to be able to do X.
validations:
required: true
- type: textarea
id: solution
attributes:
label: Proposed Solution
description: Detail the feature or solution you'd like to see implemented.
placeholder: E.g., Add a module Y with these functionalities (1)..., (2)...
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives
description: List any alternative solutions, prior art or features you have considered, if any.
placeholder: E.g., Similar functionality is found in package <Y>.
validations:
required: false
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/materialsproject/.github/blob/main/.github/code_of_conduct.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
max-parallel: 10
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11"] # cvxopt install in python "3.11" fails
python_version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
Expand All @@ -43,7 +43,7 @@ jobs:
run: |
pytest tests --cov=sparselm --cov-report=xml
- if: ${{ matrix.python_version == 3.10 && github.event_name == 'push' }}
- if: ${{ matrix.python_version == 3.11 && github.event_name == 'push' }}
name: codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Sparse Linear Regression Models
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/9b72db506d9c49b2a6c849348de8945e)](https://www.codacy.com/gh/CederGroupHub/sparse-lm/dashboard?utm_source=github.com&utm_medium=referral&utm_content=CederGroupHub/sparse-lm&utm_campaign=Badge_Coverage)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/CederGroupHub/sparse-lm/main.svg)](https://results.pre-commit.ci/latest/github/CederGroupHub/sparse-lm/main)
[![pypi version](https://img.shields.io/pypi/v/sparse-lm?color=blue)](https://pypi.org/project/sparse-lm)
[![Static Badge](https://img.shields.io/badge/python-3.9%2B-blue)](https://www.python.org/downloads/)


**sparse-lm** includes several (structured) sparse linear regression estimators that are absent in the
`sklearn.linear_model` module. The estimators in **sparse-lm** are designed to fit right into
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ dependencies = [
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Intended Audience :: Science/Research",
Expand Down

0 comments on commit 3c247b6

Please sign in to comment.