Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuvraj committed Aug 22, 2024
0 parents commit 3e7b0da
Show file tree
Hide file tree
Showing 2,691 changed files with 543,035 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[env]
# Tune jemalloc (https://github.com/pola-rs/polars/issues/18088).
JEMALLOC_SYS_WITH_MALLOC_CONF = "dirty_decay_ms:500,muzzy_decay_ms:-1"
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.ipynb linguist-documentation
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
* @ritchie46 @c-peters

/crates/ @ritchie46 @orlp @c-peters
/crates/polars-sql/ @ritchie46 @orlp @c-peters @alexander-beedie
/crates/polars-parquet/ @ritchie46 @orlp @c-peters @coastalwhite
/crates/polars-time/ @ritchie46 @orlp @c-peters @MarcoGorelli
/py-polars/ @ritchie46 @c-peters @alexander-beedie @MarcoGorelli @reswqa
/py-polars/src/lazyframe/visit.rs @ritchie46 @c-peters @alexander-beedie @MarcoGorelli @reswqa @wence-
/py-polars/src/lazyframe/visitor/ @ritchie46 @c-peters @alexander-beedie @MarcoGorelli @reswqa @wence-
76 changes: 76 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to make participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies within all project spaces, and it also applies when
an individual is representing the project or its community in public spaces.
Examples of representing a project or community include using an official
project e-mail address, posting via an official social media account, or acting
as an appointed representative at an online or offline event. Representation of
a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: ritchie46
73 changes: 73 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: '🐞 Bug report - Python'
description: Report an issue with Python Polars.
labels: [bug, needs triage, python]

body:
- type: checkboxes
id: checks
attributes:
label: Checks
options:
- label: I have checked that this issue has not already been reported.
required: true
- label: I have confirmed this bug exists on the [latest version](https://pypi.org/project/polars/) of Polars.
required: true

- type: textarea
id: example
attributes:
label: Reproducible example
description: >
Please follow [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) on how to
provide a minimal, copy-pasteable example. Include the (wrong) output if applicable.
value: |
```python
```
validations:
required: true

- type: textarea
id: logs
attributes:
label: Log output
description: >
Set the environment variable ``POLARS_VERBOSE=1`` before running the query.
Paste the output of ``stderr`` here.
render: shell

- type: textarea
id: problem
attributes:
label: Issue description
description: >
Provide any additional information you think might be relevant.
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: >
Describe or show a code example of the expected behavior.
validations:
required: true

- type: textarea
id: version
attributes:
label: Installed versions
description: >
Paste the output of ``pl.show_versions()``
value: |
<details>
```
Replace this line with the output of pl.show_versions(). Leave the backticks in place.
```
</details>
validations:
required: true

70 changes: 70 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report_rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: '🐞 Bug report - Rust'
description: Report an issue with Rust Polars.
labels: [bug, needs triage, rust]

body:
- type: checkboxes
id: checks
attributes:
label: Checks
options:
- label: I have checked that this issue has not already been reported.
required: true
- label: I have confirmed this bug exists on the [latest version](https://crates.io/crates/polars) of Polars.
required: true

- type: textarea
id: example
attributes:
label: Reproducible example
description: >
Please follow [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) on how to
provide a minimal, copy-pasteable example. Include the (wrong) output if applicable.
value: |
```rust
```
validations:
required: true

- type: textarea
id: logs
attributes:
label: Log output
description: >
Set the environment variable ``POLARS_VERBOSE=1`` before running the query.
Paste the output of ``stderr`` here.
render: shell

- type: textarea
id: problem
attributes:
label: Issue description
description: >
Provide any additional information you think might be relevant.
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: >
Describe or show a code example of the expected behavior.
validations:
required: true

- type: textarea
id: version
attributes:
label: Installed versions
description: >
List the feature gates you used.
value: |
<details>
Replace this line with a list of feature gates
</details>
validations:
required: true
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
blank_issues_enabled: true
contact_links:
- name: '❓ Question - Python'
url: https://stackoverflow.com/questions/ask?tags=python-polars%20python
about: |
Ask a question about Python Polars on Stack Overflow.
- name: '❓ Question - Rust'
url: https://stackoverflow.com/questions/ask?tags=rust-polars%20rust
about: |
Ask a question about Rust Polars on Stack Overflow.
- name: '💬 Discord server'
url: https://discord.gg/4UfP5cfBE7
about: |
Chat with the community and Polars maintainers about the usage and development of the project.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: '📖 Documentation improvement'
description: Report an issue with the documentation.
labels: [documentation]

body:
- type: textarea
id: description
attributes:
label: Description
description: >
Describe the issue with the documentation and how it can be fixed or improved.
validations:
required: true

- type: input
id: link
attributes:
label: Link
description: >
Provide a link to the existing documentation, if applicable.
placeholder: ex. https://docs.pola.rs/api/python/dev/...
validations:
required: false
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: '✨ Feature request'
description: Suggest a new feature or enhancement for Polars.
labels: [enhancement]

body:
- type: textarea
id: description
attributes:
label: Description
description: >
Describe the feature or enhancement and explain why it should be implemented.
Include a code example if applicable.
validations:
required: true
20 changes: 20 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
coverage:
status:
project: off
patch: off
comment:
require_changes: true
ignore:
- crates/polars-arrow/src/io/flight/*.rs
- crates/polars-arrow/src/io/ipc/append/*.rs
- crates/polars-arrow/src/io/ipc/read/array/union.rs
- crates/polars-arrow/src/io/ipc/read/array/map.rs
- crates/polars-arrow/src/io/ipc/read/array/binary.rs
- crates/polars-arrow/src/io/ipc/read/array/fixed_size_binary.rs
- crates/polars-arrow/src/io/ipc/read/array/null.rs
- crates/polars-arrow/src/io/ipc/write/serialize/fixed_size_binary.rs
- crates/polars-arrow/src/io/ipc/write/serialize/union.rs
- crates/polars-arrow/src/io/ipc/write/serialize/map.rs
- crates/polars-arrow/src/array/union/*.rs
- crates/polars-arrow/src/array/map/*.rs
- crates/polars-arrow/src/array/fixed_size_binary/*.rs
62 changes: 62 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
version: 2
updates:
# GitHub Actions
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: monthly
ignore:
- dependency-name: '*'
update-types: ['version-update:semver-patch']
commit-message:
prefix: ci
labels: ['skip changelog']

# Rust Polars
- package-ecosystem: cargo
directory: '/'
schedule:
interval: monthly
ignore:
- dependency-name: '*'
update-types: ['version-update:semver-patch']
commit-message:
prefix: build(rust)
prefix-development: chore(rust)
labels: ['skip changelog']

# Python Polars
- package-ecosystem: pip
directory: py-polars
schedule:
interval: monthly
ignore:
- dependency-name: '*'
update-types: ['version-update:semver-patch']
commit-message:
prefix: chore(python)
labels: ['skip changelog']

- package-ecosystem: cargo
directory: py-polars
schedule:
interval: monthly
ignore:
- dependency-name: '*'
update-types: ['version-update:semver-patch']
commit-message:
prefix: build(python)
prefix-development: chore(python)
labels: ['skip changelog']

# Documentation
- package-ecosystem: pip
directory: docs
schedule:
interval: monthly
ignore:
- dependency-name: '*'
update-types: ['version-update:semver-patch']
commit-message:
prefix: chore(python)
labels: ['skip changelog']
15 changes: 15 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"LABEL": {
"name": "title needs formatting",
"color": "FF0000"
},
"CHECKS": {
"regexp": "^(build|chore|ci|depr|docs|feat|fix|perf|refactor|release|test)(\\((python|rust)\\!?(,(python|rust)\\!?)?\\))?\\!?\\: [A-Z].*[^\\.\\!\\?,… ]$",
"ignoreLabels": ["skip changelog"]
},
"MESSAGES": {
"success": "PR title OK!",
"failure": "Invalid PR title! Please update according to the contributing guidelines: https://docs.pola.rs/development/contributing/#pull-requests",
"notice": ""
}
}
Loading

0 comments on commit 3e7b0da

Please sign in to comment.