kolonialno / oida Goto Github PK
View Code? Open in Web Editor NEWOida is Oda's linter that enforces code style and modularization in our Django projects.
License: MIT License
Oida is Oda's linter that enforces code style and modularization in our Django projects.
License: MIT License
In addition to pure code imports, we also want to check that no database relations exist between models in different apps.
From #17 the need for allowing all imports from a certain module was raised. Ie. a common module with general utilities that are intended to be used everywhere. Maybe we could add an option to pyproject.toml
, something like this maybe?
[oida]
allowed_imports = [
"foo.utils.*",
]
tests.utils
and tests.conftest
? It's not uncommon to import testing utils from other components, maybe we should support adding some kind of import ignore to better support patterns like that?core
app contains mostly public methods by design. Exposing everything in __init__.py
or similar can quickly become messy, how can we make "shared" apps easier to work with?URL configs can contain string references to URL modules in include("foo.bar.urls")
We want to always use the LIBCST_PARSER_TYPE=native
parser type, as that supports modern Python language features like match statements
Provide a warning if any of the non-lazy gettext functions are used outside of functions and methods. Ie
from django.utils.translation import gettext
# This will be translated with the language active when the module is loaded,
# which is probably not what the author intended.
FOO = gettext("test") # Should use gettext_lazy
When componentizing code celery tasks need to retain their old name to not break during a rolling deploy
For example we might want to exclude tests, that could be located in a project/component/app/tests
directory
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.