deansher / slack-message-pipe Goto Github PK
View Code? Open in Web Editor NEWSlack app -> historical messages -> simple Python data structures -> the world
License: MIT License
Slack app -> historical messages -> simple Python data structures -> the world
License: MIT License
Right now we have disabled a large number of pylint errors. We might give ourselves latitude on a few.
Right now we have disabled a large number of flake8 errors in pre-commit. We might give ourselves latitude on a few.
Here's what gpt-4 has to say about this:
Yes, it can make sense to streamline your development and CI/CD workflows by having pre-commit
run tox
, especially if you're looking to reduce redundancy and maintain consistency across local and CI environments. This approach allows you to centralize your testing and linting configurations within tox.ini
, making it easier to manage configurations and dependencies.
tox.ini
and have pre-commit
simply trigger those environments.tox
's powerful environment management capabilities, including testing across multiple Python versions and managing complex dependencies.To configure pre-commit
to run tox
, you'll need to add a local hook in your .pre-commit-config.yaml
that runs tox
. Here's an example configuration:
repos:
- repo: local
hooks:
- id: tox
name: tox
entry: tox
language: system
types: [python]
This configuration defines a local hook that runs the tox
command. The language: system
setting tells pre-commit
to use the system's environment to run the command, which requires that tox
is installed in the environment where pre-commit
runs.
tox
from pre-commit
can be slower than running individual linters or formatters directly via pre-commit
, especially if tox
is configured to recreate environments or run a comprehensive suite of tests and checks. Consider this trade-off based on your project's needs and the developer experience you want to achieve.tox
installed in their environments or provide clear instructions on how to set up their development environment. This might include using a requirements-dev.txt
file or a similar approach to manage development dependencies.tox
from pre-commit
, you might want to streamline your tox.ini
to focus on the environments and commands most relevant for pre-commit checks. For example, you could have a specific environment for quick checks that pre-commit
runs, separate from more comprehensive test environments.If you adopt this approach, remember to update your CI/CD workflows accordingly. Since pre-commit
will trigger tox
, your CI/CD configuration might simply need to run pre-commit run --all-files
to perform all checks, assuming it's set up to handle the necessary environments and dependencies.
Running tox
from pre-commit
can be a powerful way to streamline your development workflows, but it's important to consider the trade-offs in terms of performance and setup complexity. By carefully configuring your tox.ini
and .pre-commit-config.yaml
, you can create a consistent, manageable, and efficient workflow for your project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.