Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement hatch #21

Merged
merged 35 commits into from
Jan 26, 2024
Merged

Implement hatch #21

merged 35 commits into from
Jan 26, 2024

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Jan 12, 2024

resolves #41
resolves #17

Description

Now that we're using hatch:

  • do some code quality cleanup
  • remove MAKEFILE
  • update pyproject.toml
  • update CONTRIBUTING.md

Checklist

@emmyoop emmyoop mentioned this pull request Jan 16, 2024
5 tasks
.flake8 Outdated
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These settings now live in pyproject.toml

Makefile Outdated
Copy link
Member Author

@emmyoop emmyoop Jan 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hatch replaces this functionality. instead of make unit you now run hatch run unit-tests, etc

dbt_common/__about__.py Outdated Show resolved Hide resolved
@emmyoop emmyoop marked this pull request as ready for review January 18, 2024 18:57
@emmyoop emmyoop requested a review from a team as a code owner January 25, 2024 16:52
@emmyoop
Copy link
Member Author

emmyoop commented Jan 25, 2024

Also opened dbt-labs/dbt-core#9452 as i was looking at linting.

CONTRIBUTING.md Outdated Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
dbt_common/utils/__init__.py Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
@emmyoop emmyoop mentioned this pull request Jan 25, 2024
5 tasks
Copy link
Contributor

@mikealfare mikealfare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers, really just two nits. Feel free to merge as is without addressing my comments.


- name: Install Hatch
- name: Install pre-commit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would we install pre-commit in CI? I'm probably answering my own question, but is it to catch the eof and trailing whitespace issues?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are indeed answering your own question.


### Running `dbt-common`

This repository is just a template and cannot be run.
This repository cannot be run on its own.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that this is entirely true. I think it just has very specific use cases that make it less valuable outside of the dbt ecosystem. I'm arguing semantics, but I think the distinction we're looking for is that between a library and an application. dbt-core was more of an application whereas this is a library. I'm only pointing it out because this may convey a different sentiment than intended. After all, one of the goals of breaking up the monorepo was to establish stand-alone packages, albeit very use-case-specific packages.

@emmyoop emmyoop merged commit 67e25a8 into main Jan 26, 2024
6 checks passed
@emmyoop emmyoop deleted the er/build-tooling branch January 26, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean Up hatch implementation Validate builds in CI and release
3 participants